Additional metrics integrated with the keras NN library, taken directly from tensorflow.
Additional metrics integrated with the keras NN library, taken directly from Tensorflow
How do I get this package?
As usual, just install it with pip:
pip install extra_keras_metrics
How do I use this package?
Just by importing it you will be able to access all the non-parametric metrics, such as “auprc” and “auroc”:
import extra_keras_metrics model = my_keras_model() model.compile( optimizer="sgd", loss="binary_crossentropy", metrics=["auroc", "auprc"] )
For the parametric metrics, such as “average_precision_at_k”, you will need to import them, such as:
from extra_keras_metrics import average_precision_at_k model = my_keras_model() model.compile( optimizer="sgd", loss="binary_crossentropy", metrics=[average_precision_at_k(1), average_precision_at_k(2)] )
This way in the history of the model you will find both the metrics indexed as “average_precision_at_k_1” and “average_precision_at_k_2” respectively.
Which metrics do I get?
You will get all the metrics from Tensorflow. At the time of writing, the ones available are the following:
The non-parametric ones are:
The parametric ones are:
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for extra_keras_metrics-1.0.0.tar.gz