Skip to main content
# Example Usage
```
# Import the required functions from your package
from nn_metrics.metrics import (
mean_absolute_percentage_error,
mean_absolute_error,
mean_squared_error,
root_mean_squared_error,
binary_cross_entropy,
categorical_correntropy,
sparse_categorical_crossentropy
)

# Example usage:
actual = [10, 20, 30, 40, 50]
predicted = [12, 18, 28, 41, 48]

# Calculate and print error metrics
print("Mean Absolute Percentage Error (MAPE):", mean_absolute_percentage_error(actual, predicted))
print("Mean Absolute Error (MAE):", mean_absolute_error(actual, predicted))
print("Mean Squared Error (MSE):", mean_squared_error(actual, predicted))
print("Root Mean Squared Error (RMSE):", root_mean_squared_error(actual, predicted))
```

Metadata

Release files for nn-metrics 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nn-metrics 1.0.0
File Size Uploaded
nn_metrics-1.0.0.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nn-metrics 1.0.0
File Interpreter ABI Platform
nn_metrics-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 kB

Release files / nn_metrics-1.0.0.tar.gz

Download URL nn_metrics-1.0.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
049f665cbde0c0fb5a82e403d5c6f198d18625fc798ff05a501d4763e827dda3
BLAKE2b-256 checksum
How to use checksums
0f092ea6d6c13e8d7d613642ceacc0c7ce2492fe4f47ec55015314dadf4a5d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / nn_metrics-1.0.0-py3-none-any.whl

Download URL nn_metrics-1.0.0-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7406e470b956375549c7cb9328dcba558f0af8dc17d91ea62e81272a7b1b1ce7
BLAKE2b-256 checksum
How to use checksums
110334731703673486885eb35d618b67cc0b2abb88b54058aef106f5cd18db79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page