Code Monkey home page Code Monkey logo

aimrun's Introduction

aimrun

A simple interface for integrating aim into MLOps frameworks.

Installation

pip install aimrun

Features

  1. Multiple runs. Simply initialize multiple aimruns using aimrun.init(), and track to multiple repositories at once.
  2. No need for a main-process wrapper. You do not need to make sure that only the main-process calls aimrun functions - we take care of that for you.
  3. Sync project-specific (local) repositories to larger (remote) repositories. See python -m aimrun sync --help for guidance.

Usage (Recommended)

  1. Initialize one or more aimruns using aimrun.init()
  2. Use aimrun.track() to track values. Parse a dictionary.
  3. Use aimrun.close() to finalize the experiments.

Example usage

import aimrun

# initalize 
aimrun.init(repo='aim://172.3.66.145:53800', experiment='my_experiment', description='description of run' args={"arg": 1}) # args=vars(args) if you use argsparse

# track 
aimrun.track({"value_0": A, "value_1": B})
# or 
aimrun.track(A, name="value_0")

# close 
aimrun.close() 

Synchronizing on-going runs

aimrun.init(repo=".", sync_repo='aim://172.3.66.145:53800', sync_args={"repeat": 60}, experiment='my_experiment', description='description of run' args={"arg": 1})

This starts a thread that incrementally synchronizes the current on-going run to a remote repo while using the current directory as the local repository.

To profit from mass updates (faster synchronization), consider installing an improved aim version:

pip install git+https://github.com/schneiderkamplab/aim

Drop-in replacement Wandb (Experimental)

We experimentally offer aimrun as a drop-in replacement for wandb, making a seamless integration in your framework even easier.

  1. Replaceimport wandb with from aimrun import wandb
  2. Set default repository before init (e.g. right after import) wandb.set_default_repo('aim://172.3.66.145:53800')
  3. Supported functions .init(), .log(), .finish()

aimrun's People

Contributors

peter-sk avatar jacobbitlabs avatar

Watchers

 avatar Tobias Hyrup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.