Closed soliverc closed 4 years ago
Welcome to Talos community! Thanks so much for creating your first issue :)
reduction_metric
needs to accept arbitrary strings, because custom metrics might have any imaginable name, so what you are witnessing is expected. But I think there has to be some mechanism to alert when the case is such as here i.e. the input and the available metrics do not correspond.
Meaningful input for reduction_metric
is one of the metrics in your experiment, one that you want to use for optimization purpose.
Closing here as resolved. Will create a new ticket for handling the alert.
I use metrics from the keras metrics package to track model performance:
When I do this I get the following output:
etc etc
As you can see there is a
val_f1_score
in the metrics being displayed. So that's what I've been using for theScan
fuction.I think I've just discovered that this is not working. I entered
akjdfjkahd
intoreduction_metric
and it worked. The model is training now.So what should I do if I want to use something like
val fscore
?This is the only line I can find in the docs:
Do I just use
val_fmeasure
? I can use it, but I can't know if it's working, because this argument accepts any string.By the way, this library is awesome.
edit: just from reading issues here, I noticed that metrics are available in
ta.utils.metrics
. So let's say I want to useta.utils.metrics.matthews
.If I put
matthews
intoreduction_metric
, will it work?Like this:
My model is currently training with
reduction_metric="fgsfgsdfgsf"
:)