mastfm
mastfm is a package for Meta-learning and data Augmentation for Stress Testing. It provides tools to interpret forecasting models by leveraging meta-learning techniques and various data augmentation methods.
Installation
You can install the mastfm package using pip:
pip install mastfm
Requirements
- numpy
- pandas
- scikit-learn
- shap
- shapiq
- matplotlib
- imbalanced-learn
- tsfeatures
- xgboost
- lightgbm
- tqdm
- mlforecast
Usage
Here is a simple example of how to use the mastfm package:
import pandas as pd
from mastfm import MAST
from xgboost import XGBRegressor as xgb
# Load your data into a pandas DataFrame
df = pd.read_csv('your_dataset.csv')
# Initialize the MAST class
mast = MASTFM(
forecasting_model=xgb(),
seasonality=12,
frequency="M",
horizon=12,
level=80,
quantile=80,
augmentation_method="ADASYN",
)
mast.fit(df=df, target_differences=1)
mast.plot_stress(save=True)
mast.explanations(save=True)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Ricardo Inácio
Metadata
Release files for mastfm 0.0.4
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 |
|---|---|---|---|---|
| mastfm-0.0.4.tar.gz | 14.3 kB | Without provenance | Details for mastfm-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mastfm-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for mastfm-0.0.4-py3-none-any.whl |
Total release size: 29.4 kB
Release files / mastfm-0.0.4.tar.gz
| Download URL | mastfm-0.0.4.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cf8d92e87052947e35b5e9ecd0af43b31d1d998e46b9acec096f5a01eb60a30
|
|
BLAKE2b-256 checksum How to use checksums |
c06af141675b1b885439eee9d60677366b3b45d07a63afa13271071ba1f2adfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / mastfm-0.0.4-py3-none-any.whl
| Download URL | mastfm-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dd78243b346c1cfe08684b6394b8dc4faf22a0b3fd41f825ae39ca1c8f30977
|
|
BLAKE2b-256 checksum How to use checksums |
56ce39417847054c55ae27e1501ee4fbd6cdcb04065f3a56244b79237f065086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Security for mastfm 0.0.4
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.