Metadata-Version: 2.3
Name: flameai
Version: 1.0.1
Summary: Deep Learning Toolkit.
Project-URL: repository, https://github.com/luochang212/flameai
Project-URL: bug-tracker, https://github.com/luochang212/flameai/issues
Project-URL: documentation, https://luochang212.github.io/posts/flameai
Author: luochang
Author-email: luochang212@gmail.com
License: Apache-2.0
License-File: LICENSE
Keywords: deep learning,flameai
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Requires-Dist: matplotlib>=3.8.4
Requires-Dist: numpy>=1.26.4
Requires-Dist: optuna>=3.6.1
Requires-Dist: pandas>=2.2.0
Requires-Dist: scikit-learn>=1.5.0
Requires-Dist: scipy>=1.13.0
Requires-Dist: seaborn>=0.13.2
Description-Content-Type: text/markdown

# flameai

Deep Learning Toolkit.

## Installation

Install the package: 

```bash
pip install flameai
```

## Usage

Example:

```python
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:

```bash
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build

python3 -m build
```

Upload:

```bash
twine upload dist/* 
```