Category "metrics"

ValueError: Unknown metric function: cosine

i have been getting valueError issue. Currently using python3.9.11., keras2.8. if loss_init=="r2": parallel_model.compile(loss=custom_r2_loss, o

Metrics F1 warning zero division

I want to calculate the F1 score of my models. But I receive a warning and get a 0.0 F1-score and I don't know what to do. here is the source code: def model_

Adding metric labels in prometheus on the fly

I have a counter metric in prometheus. I want to add lables to it dynamically for example if my request comes http://abc123.com/{p1} ,I want my custom_metric_na