随时随地监控您的模型训练。
项目描述
机器学习实验
这个包正在开发中。
安装
pip install ml-experiments
# or (if you are not getting the latest version)
pip install git+https://github.com/abdalrhmanu/ml-experiments.git --upgrade
通知
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}
数据集拆分
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()
运行测试
cd tests
python3 test_filename.py
项目详情
关
ml_experiments -0.1.2.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 5c48d503df70ed5d96504d90b745d6ebcc2ad23fc5cd540b4823db6ce8f0f784 |
|
| MD5 | 0d13bb3ac7f24c3af6ee64e50089f1f8 |
|
| 布莱克2-256 | 91e18d8ad61ed9bb37540b75ae0bef34b951ec9b258a0cdb54d2e71b23a46e5c |
关
ml_experiments -0.1.2-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | a346943831a124e2734847294e0b8303a8d21876ae854d8776d782505f81c8cf |
|
| MD5 | 83798503d27308374230fe97a47c0f4a |
|
| 布莱克2-256 | a68e3ad068950b6011c69a5f37c18ef3771b83fcbbbfec5bc4585f3d9879e224 |