npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

empirical-cli

v0.7.0

Published

Empirical CLI

Downloads

4

Readme

emp is a command line tool that helps you run and replicate experiments using the Empirical Framework

Dependencies

There are only 2 requirements:

  • Node.js is a JavaScript runtime required to run this program on your computer. Download and install Node.js from here.
  • Docker allows us to create self-contained portable environments that work accross different platforms. Follow these instructions to install Docker.

Install

emp is supported on Windows, Mac and Linux. Once you have node.js installed on your computer, you can install emp using npm.

npm install -g empirical-cli

Get started

Test your installation by replicating an experiment.

emp run empirical/mnist-sample/x/Hke43sz5e

This will clone the source code from GitHub, checkout the appropriate version, build the experiment image, download the required datasets, run the experiment, and save the results on your computer. All in one single command.

Run your experiments

Once you have defined your experiment using the Empirical Framework.

From GitHub

Run an experiment directly from a GitHub repository.

emp run mnist https://github.com/empiricalci/mnist-sample

Or provide a specific commit.

emp run mnist https://github.com/empiricalci/mnist-sample#0e6b04363c374992eb94a80dd2db0895711fb60f

From empiricalci.com

You can easily replicate any experiment pushed to empiricalci by running:

emp run <experimentId>

From a local directory

Or you can run an experiment from a local directory.

emp run my-protocol /path/to/code

Keep track of your experiments

Authenticate with the server

Authenticating with empiricalci.com allows you to save the results of your experiments and share them with your peers.

  1. If you haven't done so, sign up for an account on empiricalci.com
  2. Login using the CLI: emp login will ask for your credentials and store them on your computer

Push your results

Push your results to the online dashboard by providing a message a path to the output directory created by emp run and the project id.

emp push /path/to/report <projectId>

Configure

Empirical uses a directory to cache all the datasets downloaded and to save any files generated during the tests or experiments. This defaults to ~/empirical. You can change this by doing:

emp configure

Notes

GPU Support

GPU support is provided for Linux via nvidia-docker, you can follow the instructions on the "Quick start" to install it and learn how to run GPU enabled experiments here.

Currently Windows and MacOS are not supported since they rely on VMs to run Docker. See this issue for more information.

About Docker on Windows

If you're using the Docker for Windows version, as opposed to Docker toolbox make sure of the following:

  • emp requires to mount certain directories on your containers, so make sure to share your local drives.
  • emp can usually communicate with Docker using the default settings. If it fails to connect, make sure the DOCKER_HOST environment variable is set to the correct value. On Docker for Windows this defaults to 127.0.0.1:2375. You can set it using CMD as setx DOCKER_HOST "127.0.0.1:2375".