A comprehensive ML experiment tracking library
Project description
PyPMLTracker: A Comprehensive ML Experiment Tracking Library
PyPMLTracker is a powerful and flexible experiment tracking library designed for machine learning projects. It helps data scientists and ML engineers efficiently track, visualize, and manage their experiments. Whether you're training models locally or in the cloud, PyPMLTracker provides all the tools you need to streamline your ML workflow and collaborate with your team.
Check out the official PyPI package: https://pypi.org/project/pypmltracker/
Features ✨
- 📊 Experiment Tracking: Log metrics, parameters, and artifacts during model training.
- 🖥️ System Monitoring: Track CPU, memory, disk, and GPU usage during experiments.
- 🔄 Framework Integrations: Native support for PyTorch, TensorFlow, and scikit-learn.
- 📈 Visualization: Interactive dashboard to visualize and compare experiments.
- 💾 Storage Options: Local storage and cloud storage (AWS S3) support.
- 🌐 API: Client-server architecture for team collaboration.
🔧 Used Libraries & Tools
Installation ⚙️
Install PyPMLTracker
To install PyPMLTracker, use the following pip command:
pip install pypmltracker
Optional Features
You can install specific features based on your needs:
- PyTorch integration:
pip install pypmltracker[pytorch]
- TensorFlow integration:
pip install pypmltracker[tensorflow]
- scikit-learn integration:
pip install pypmltracker[sklearn]
- Cloud storage (AWS S3):
pip install pypmltracker[cloud]
- All features (PyTorch, TensorFlow, scikit-learn, and Cloud):
pip install pypmltracker[all]
Quick Start 🚀
1. Initialize an Experiment
import pypmltracker
experiment = pypmltracker.Experiment(
project_name="my_project",
run_name="first_run",
config={"learning_rate": 0.01, "batch_size": 32}
)
experiment.log({"accuracy": 0.85, "loss": 0.35})
experiment.log_artifact("model", "model.pkl")
experiment.finish()
dashboard = pypmltracker.Dashboard()
dashboard.start(open_browser=True)
Framework Integrations 🤖
PyPMLTracker integrates with several popular machine learning frameworks. Below are examples of how to use PyPMLTracker with PyTorch, TensorFlow, and scikit-learn.
import torch
import torch.nn as nn
import pypmltracker
experiment = pypmltracker.Experiment(project_name="pytorch_example")
tracker = pypmltracker.PyTorchTracker(experiment, log_gradients=True)
model = nn.Sequential(nn.Linear(10, 5), nn.ReLU(), nn.Linear(5, 1))
tracker.watch(model)
for epoch in range(10):
loss = train_step(model, data)
tracker.track_metrics({"loss": loss})
val_accuracy = validate(model, val_data)
tracker.on_epoch_end(epoch, model, {"val_accuracy": val_accuracy})
tracker.save_model(model, "final_model")
System Monitoring 🖥️
Track system resources such as CPU, memory, and disk usage during your experiments.
import pypmltracker
import time
experiment = pypmltracker.Experiment(project_name="system_monitoring")
monitor = pypmltracker.SystemMonitor(experiment)
monitor.start()
for i in range(10):
time.sleep(1)
experiment.log({"step": i, "value": i * 2})
monitor.stop()
experiment.finish()
Dashboard 📊
Start the PyPMLTracker web dashboard to visualize and compare your experiments.
import pypmltracker
dashboard = pypmltracker.Dashboard(
storage_dir="./pypmltracker_data",
host="127.0.0.1",
port=8000
)
dashboard.start(open_browser=True)
Team Collaboration 🤝
PyPMLTracker supports client-server architecture to facilitate team collaboration.
- Server Server Start the server to expose PyPMLTracker functionality via a REST API:
import pypmltracker
server = pypmltracker.PyPMLTrackerServer(
storage_dir="./pypmltracker_data",
host="0.0.0.0",
port=5000,
api_key="your-secret-api-key"
)
server.start()
- Client 📡 Connect to the remote server and interact with it:
import pypmltracker
client = pypmltracker.PyPMLTrackerClient(
base_url="http://server-address:5000",
api_key="your-secret-api-key"
)
projects = client.list_projects()
print("Projects:", projects)
License 📜
PyPMLTracker is licensed under the MIT License.
Contributing 🤗
Contributions are welcome! If you’d like to contribute to the development of PyPMLTracker, please feel free to submit a pull request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypmltracker-0.1.2.tar.gz.
File metadata
- Download URL: pypmltracker-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2575a73f9d44ca189c9618901d27dbddd69ab0cd892da404b285e08c49db5f6
|
|
| MD5 |
6166ecea6b2b21251c7dce4890d351c6
|
|
| BLAKE2b-256 |
51b249809c04b84a8f92c7543c441678b012f6356ee7b9ada520d429a03df20d
|
File details
Details for the file pypmltracker-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pypmltracker-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97c75b8f59f9e9017b513573aa16ae18d9d6b4bbc1aa3fd98b3e88b35b4600fe
|
|
| MD5 |
4cce2fe7b5cdeb12b7ff351bb9bdb63c
|
|
| BLAKE2b-256 |
04af2870aeb4fb97066f658ee8e025cc64f69ded1cb73b93b2bde007ed3f00d3
|