Skip to main content

Lightweight ML experiment tracker — log, compare and visualize your ML experiments locally

Project description

MLens

Mlens is a simple tool to manage and compare Models and via visualizing the models stats .This is completely free easy to use and run locally on your computer.


Why MLens

In the world of data and data science the main things are models. The engineers run various models and train various example after some time they didn't know which models is perfect and they even didn't on which Managing multiple experiments manually becomes chaotic and time-consuming for data scientists. But now using MlensMLens eliminates this problem by automatically tracking and managing all your experiments. so much because Mlens takes all records of this and manage your models quicky.

Run Locally

Clone the project

  git clone https://github.com/munishmalhotra6230/model_tracker-MLENS-.git

Go to the project directory

  cd model_tracker-MLENS-

Install dependencies

  pip install -r requirements.txt

Start the server

    cd backend_monitoring
    python backend.py 

run test scripts

python test_scripts.py

View_results

streamlit run dashboard.py

Features

  • Easy to use
  • Runs fully locally
  • Records each experiment and their results
  • No cloud integrations your data on your system
  • Provides visualization of each experiment you run on so you can comapare perfromance
  • uses vanilla metrics
  • preferable for Supervised learning (Scikit-learn)

How to use Mlens

  • You need to add the db_path to store your Experiments

  • After this run the server(Always make sure server should be ON)

  • Then Train the model withing declaring a experiment( NOTE:Choose Experiment name on the basis of problem you are working on Like : Problem_Datasetname) -and after that dasboard command to visualize the experiments

gif

alt text

Screen shots:

alt text alt text alt text alt text alt text alt text

Usage/Examples

from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from Experiment.Experiment import Experiment
# Load the Iris dataset
x,y=load_iris(return_X_y=True)
with Experiment("Experiment1") as exp:
    try:
        xtrain,xval,ytrain,yval=train_test_split(x,y,test_size=0.2,random_state=42)
        exp.Start_experiment(xtrain,ytrain,Xtest=xval,ytest=yval,model=LogisticRegression())
        exp.Start_experiment(xtrain,ytrain,Xtest=xval,ytest=yval,model=RandomForestClassifier())

    except Exception as e:
        print(f"An error occurred:")
    finally:
        print("Experiment Completed")       

with Experiment("Experiment2") as exp:
    try:
        xtrain,xval,ytrain,yval=train_test_split(x,y,test_size=0.2,random_state=42)
        exp.Start_experiment(xtrain,ytrain,Xtest=xval,ytest=yval,model=LogisticRegression())
        exp.Start_experiment(xtrain,ytrain,Xtest=xval,ytest=yval,model=RandomForestClassifier())

    except Exception as e:
        print(f"An error occurred:")
    finally:
        print("Experiment Completed")   

Optimizations

  • Suggest Optimizations for mlens on Discord i will listen to it

Feedback

If you have any feedback, please reach out to us on discord here is the link to join Discord channel https://discord.gg/svx4Sfckz

🔗 Links

portfolio

Authors

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

pymlens-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymlens-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pymlens-0.1.2.tar.gz.

File metadata

  • Download URL: pymlens-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for pymlens-0.1.2.tar.gz
Algorithm Hash digest
SHA256 86a9a84d4fbe3a5049a2bc4cf42a44f50db99d2e8d23046d00bf5878783a4738
MD5 65d30ed2f61d2b8de4824cb1156f8fe1
BLAKE2b-256 7b2ee7a84b4b35f2a089debd0646f9eb3be27f9a35ed884c3e895523461c178d

See more details on using hashes here.

File details

Details for the file pymlens-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pymlens-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for pymlens-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f03ef9ea6eb16bc310f74e92c134130a5d33cae328a931a92c4c6f7132adb3
MD5 9180a8a30daf9ce15910341ff3d44f63
BLAKE2b-256 175a3a23ac4f89e598c0e7e7a98a4b3293b4f76963e4cf1dc84bf9abf38fec64

See more details on using hashes here.

Supported by

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