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.3.tar.gz (4.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.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymlens-0.1.3.tar.gz
  • Upload date:
  • Size: 4.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.3.tar.gz
Algorithm Hash digest
SHA256 7b098c219d5431e003d28e819fbad9dd93968f4a95d79d94720899067678be1a
MD5 8a34294fdb8bb26e5fbee2a716145a1c
BLAKE2b-256 efd1417be15550de8f587df3a52423c7c55b8466ef2fe9e248f25bd77336a3c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymlens-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac6b1c2d492bee53f0320791c7bd5aa641961982394d336820260b2178de867
MD5 09e34572c5f2636651d74ac004bb1a49
BLAKE2b-256 a329579d0f768a0aa35a8b28c007a285cd96b0c502646512fe577bf48a68966e

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