Skip to main content

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)

Uploaded Source

Built Distribution

ml_experiments-0.1.2-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page