explaingit

naialorente/datalog

Analysis updated 2026-05-18

1PythonAudience · dataComplexity · 2/5LicenseSetup · easy

TLDR

A zero-setup Python library for tracking ML experiment metrics locally in two lines of code, with a built-in dashboard, anomaly detection, and hyperparameter suggestions.

Mindmap

mindmap
  root((mltrackr))
    Core tracking
      Log any metric
      Run context manager
      SQLite storage
    Dashboard
      Local web UI
      Live auto-refresh
      Run comparison
    Smart tools
      Anomaly detection
      Hyperparameter suggest
      Markdown reports
    Frameworks
      PyTorch
      scikit-learn
      HuggingFace
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Track which hyperparameters produced the best accuracy across multiple training runs without leaving your Python script.

USE CASE 2

Open a live local dashboard to watch your model's loss and accuracy update in real time while training.

USE CASE 3

Get plain-English suggestions for which hyperparameter values to try next, based on your run history.

USE CASE 4

Generate a markdown experiment report to share with teammates or include in a research writeup.

What is it built with?

PythonSQLitePyPI

How does it compare?

naialorente/dataloga-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/54/53/5
Audiencedataresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
MIT license: use, copy, modify, and distribute freely for any purpose, including commercial use.

In plain English

mltrackr is a lightweight Python library for tracking machine learning experiments. When you are training a model and want to record which settings produced the best results, mltrackr lets you do that with just two lines of code added to your existing training loop. It does not require a separate server, an online account, or any cloud service. Everything is saved in a single SQLite database file on your computer. After installing via pip, you wrap your training loop with a run context and call mltrackr.log() to record any numbers you care about. Once you have collected a few runs, you can view them in a local web dashboard at http://localhost:7000 that shows charts, metric comparisons, and trend indicators side by side. The dashboard auto-refreshes every five seconds, so you can watch your metrics update in real time while training. Beyond basic logging, mltrackr includes several tools aimed at saving time during experimentation. An anomaly detection feature watches for problems like the loss becoming not-a-number or a metric that has stopped improving for a set number of epochs. A hyperparameter suggestion command analyzes your run history and reports which settings correlated with better results in plain English. There is also a report generator that produces a markdown summary of all your experiments, and optionally uses a locally installed language model (Ollama) to write a narrative, with no cloud API keys required. The library works with most Python machine learning frameworks including PyTorch, scikit-learn, Keras, HuggingFace Transformers, XGBoost, and LightGBM. All data lives in a file at ~/.mltrackr/experiments.db that you can open with any SQLite browser or back up like any other file. The project is available on PyPI and is licensed under the MIT license. It targets developers and researchers who want quick experiment tracking without the overhead of tools like MLflow or Weights and Biases.

Copy-paste prompts

Prompt 1
How do I add mltrackr to my PyTorch training loop to track loss and accuracy per epoch?
Prompt 2
How do I use mltrackr suggest to get recommendations on which hyperparameters to try next?
Prompt 3
How do I set up mltrackr's anomaly detection to warn me when my training loss diverges or plateaus?
Prompt 4
How do I generate a markdown report of all my mltrackr experiments using the local Ollama narrative option?

Frequently asked questions

What is datalog?

A zero-setup Python library for tracking ML experiment metrics locally in two lines of code, with a built-in dashboard, anomaly detection, and hyperparameter suggestions.

What language is datalog written in?

Mainly Python. The stack also includes Python, SQLite, PyPI.

What license does datalog use?

MIT license: use, copy, modify, and distribute freely for any purpose, including commercial use.

How hard is datalog to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is datalog for?

Mainly data.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub naialorente on gitmyhub

Verify against the repo before relying on details.