Skip to main content

Deep Learning Toolkit.

Project description

flameai

Deep Learning Toolkit.

Installation

Install the package:

pip install flameai

Usage

Example:

import flameai.metrics

y_true = [1, 0, 1, 1, 0, 1, 0, 1, 0, 0]
y_pred = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
flameai.metrics.eval_binary(y_true, y_pred, threshold = 0.5)

The output will be:

threshold: 0.50000
accuracy: 0.40000
precision: 0.40000
recall: 0.40000
f1_score: 0.40000
auc: 0.28000
cross-entropy loss: 4.56233
True Positive (TP): 2
True Negative (TN): 2
False Positive (FP): 3
False Negative (FN): 3
confusion matrix:
[[2 3]
 [3 2]]

Development

Build:

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build

python3 -m build

Upload:

twine upload dist/* 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flameai-1.0.1.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

flameai-1.0.1-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page