MSE - Mean Squared Error Calculation Package
Overview
Mean_Squared_Error is a Python package for calculating the Mean Squared Error (MSE), a common metric for evaluating regression models. This package provides a simple and efficient way to compute MSE for model predictions.
Installation
You can install Mean_Squared_Error using pip:
pip install Mean_Squared_Error
Usage
from Mean_Squared_Error import MSE
# Example usage
result = MSE([1, 2, 3], [4, 5, 6])
print(result)
MSE(y_true, y_pred)
Calculates the Mean Squared Error between true values and predicted values.
Parameters:
y_true(list/array): Ground truth valuesy_pred(list/array): Predicted values
Returns:
- float: The calculated Mean Squared Error
Examples
# Basic usage
true_values = [1, 2, 3, 4, 5]
predicted_values = [1.1, 2.2, 2.9, 4.1, 5.2]
error = MSE(true_values, predicted_values)
print(f"Mean Squared Error: {error}")
# Using with numpy arrays
import numpy as np
y_true = np.array([1.0, 2.0, 3.0])
y_pred = np.array([1.1, 1.9, 3.2])
error = MSE(y_true, y_pred)
print(f"Mean Squared Error: {error}")
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for Mean-Squared-Error 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mean_squared_error-0.4.0.tar.gz | 1.8 kB | Without provenance | Details for mean_squared_error-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Mean_Squared_Error-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for Mean_Squared_Error-0.4.0-py3-none-any.whl |
Total release size: 4.1 kB
Release files / mean_squared_error-0.4.0.tar.gz
| Download URL | mean_squared_error-0.4.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2aff0f4675aa7aa9f618ba25ebfc7b1314dc1c710913a0b0643ee65b6c079d1
|
|
BLAKE2b-256 checksum How to use checksums |
81a4fa8f5c2c0c3dca18aa5bc4bb30cd467292b9481b7e1e4b34c71cb88ec276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / Mean_Squared_Error-0.4.0-py3-none-any.whl
| Download URL | Mean_Squared_Error-0.4.0-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dba8c377ab40f23618476fa29fb921918489045774eafc23b1c5061d8b431299
|
|
BLAKE2b-256 checksum How to use checksums |
2d94cd49a813f8647267c8996c3a2a8da44bd0e202fdbc9067f4e58723f2b178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for Mean-Squared-Error 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.