Metrics for Keras model evaluation
Project description
Keras Metrics
This package provides metrics for evaluation of Keras classification models. The metrics are safe to use for batch-based model evaluation.
Installation
To install the package from the PyPi repository you can execute the following command:
pip install keras-metrics
Usage
The usage of the package is simple:
import keras
import keras_metrics
model = models.Sequential()
model.add(keras.layers.Dense(1, activation="sigmoid", input_dim=2))
model.add(keras.layers.Dense(1, activation="softmax"))
model.compile(optimizer="sgd",
loss="binary_crossentropy",
metrics=[keras_metrics.precision(), keras_metrics.recall()])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keras-metrics-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for keras_metrics-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6150e70e3658f8e0589b6547e5c01a9ee6d2e24b6d11642f391b17eb5ae0888d |
|
MD5 | cc50bbe399bd0479c8ea624f833c64a3 |
|
BLAKE2b-256 | 9cd838ca1390f91ecc20ddfe27838fc637b9a5f2cb61f898e2ab37528a5dc7de |