Monitor you model training anywhere.
Project description
ML Experiments
This package is under development.
Installation
pip install ml-experiments
# or (if you are not getting the latest version)
pip install git+https://github.com/abdalrhmanu/ml-experiments.git --upgrade
Notification
from ml_experiments.notify import notify_desktop, notify_email
@notify_desktop(title='Testing Completed!')
def train():
// .. some training code ..
return {"loss": 5}
@notify_email(recipient_emails=['emai1@email.com'], sender_email=['emai2@email.com','emai3@email.com'])
def train():
// .. some training code ..
return {"loss": 5}
Dataset Splitting
from ml_experiments.data_prep import Dataset
dataset = Dataset(
dataset_path=r'..\\dev\\dataset',
csv_path=r'..\\dev\\test.csv',
output_directory=r'..\\dev\\out',
output_format="dir")
# split (copy) to the defined output directory to every label
dataset.split_to_directory()
dataset2 = Dataset(
dataset_path=r'..\\dev\\dataset',
csv_path=r'..\\dev\\test.csv',
output_directory=None,
output_format="df")
# splits to a dataframe without creating any new directory
df, x_col, y_col = dataset2.split_to_df()
Running Tests
cd tests
python3 test_filename.py
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
ml_experiments-0.1.2.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for ml_experiments-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a346943831a124e2734847294e0b8303a8d21876ae854d8776d782505f81c8cf |
|
MD5 | 83798503d27308374230fe97a47c0f4a |
|
BLAKE2b-256 | a68e3ad068950b6011c69a5f37c18ef3771b83fcbbbfec5bc4585f3d9879e224 |