DEV Community

Michele Dallachiesa
Michele Dallachiesa

Posted on

Track and Collaborate on AI Experiments with MLtraq

MLtraq is an open-source Python library for AI developers to design, execute and share experiments. Track anything, stream, reproduce, collaborate, and resume the computation state anywhere.

Example: Parallel execution of runs

MLtraq lets you analyze the result of thousands of AI experiments modeled as state monads after executing them in parallel in just a few lines of code:

from random import uniform

from mltraq import Run, create_experiment


def step(run: Run):
    run.fields.v = uniform(0, 1)


create_experiment(). \
  add_runs(i=range(1000)). \
  execute(step). \
  runs.df().v.mean()
Enter fullscreen mode Exit fullscreen mode

Follow me and the #mltraq hashtag for more.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay