experiment-lab


Nameexperiment-lab JSON
Version 1.1.7 PyPI version JSON
download
home_pageNone
SummaryA suite of flexible experiments of a variety of different tasks.
upload_time2024-04-24 04:19:00
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords experiment suite lab
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ExperimentLab

A suite of flexible experiments of a variety of different tasks.

## Installation

To create a conda environment for this package use the following commands to do so

```bash
conda create -n experiment_lab python=3.11 -y
conda activate experiment_lab
```

Install the version of pytorch that is compatible with your hardware using the pip or conda command from their [website](https://pytorch.org/get-started/locally/).

To just install the experiment runner framework in one command:

```bash
pip install experiment-lab
```

or

```bash
pip install git+https://github.com/rishavb123/ExperimentLab.git
```

For specific optional dependencies use:

```bash
pip install -e "experiment-lab[{name}]"
```

where `{name}` can be `all`, `ml`, `rl`, `rl-vid`, or `dev`.

To test this installation, try this command (after logging into wandb with `wandb login`):

```bash
run_mc --config-name estimate_pi
```

which should run a monte carlo experiment to estimate the value of pi. See the experiments project in wandb to view the results of this experiment.

To install this package directly from the github reposity use the following commands:

```bash
git clone https://github.com/rishavb123/ExperimentLab.git
cd ExperimentLab
pip install -e .
```

As a test, try running the following script:

```bash
python experiment_lab/experiments/examples/random_waits.py n_runs=20 n_run_method=parallel seed=0
```

For specific optional dependencies use:

```bash
pip install -e ".[{name}]"
```

where `{name}` can be `all`, `ml`, `rl`, `rl-vid`, or `dev`.

### Debugging Tips

#### Recording Videos on RL experiments

The video recording wrapper from the stable baselines library requires a few dependencies that must be installed before it can be used.
1. Install moviepy to your python environment. This can be done using through this package via:
```bash
pip install "experiment_lab[rl-vid]"
```
or directly using,
```bash
pip install moviepy
```
2. Install ffmpeg on your system using the following command (depending on your OS):
- Ubuntu: `sudo apt install ffmpeg` 
- Mac: `brew instlal ffmpeg`
- Windows: Follow the instructions [here](https://phoenixnap.com/kb/ffmpeg-windows). Note that I did not write or review this instructions.
3. Make sure to set the location of the ffmpeg binary to the `$IMAGEIO_F

Also, it should be noted that there are some issues with using the multiprocessing vector environment with the video recorder. Ensure that the start_method set in the RL config is "spawn" (which is the default if it is left as None) for best results. On MacOS, see [this](https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr) page for potential problems with using "fork".

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "experiment-lab",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "experiment, suite, lab",
    "author": null,
    "author_email": "Rishav Bhagat <rishavbhagat.cs@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/89/b9/e547170170090eace40a29e7daf162bbe03a4fc93685fe90d0ba2b883aab/experiment_lab-1.1.7.tar.gz",
    "platform": null,
    "description": "# ExperimentLab\n\nA suite of flexible experiments of a variety of different tasks.\n\n## Installation\n\nTo create a conda environment for this package use the following commands to do so\n\n```bash\nconda create -n experiment_lab python=3.11 -y\nconda activate experiment_lab\n```\n\nInstall the version of pytorch that is compatible with your hardware using the pip or conda command from their [website](https://pytorch.org/get-started/locally/).\n\nTo just install the experiment runner framework in one command:\n\n```bash\npip install experiment-lab\n```\n\nor\n\n```bash\npip install git+https://github.com/rishavb123/ExperimentLab.git\n```\n\nFor specific optional dependencies use:\n\n```bash\npip install -e \"experiment-lab[{name}]\"\n```\n\nwhere `{name}` can be `all`, `ml`, `rl`, `rl-vid`, or `dev`.\n\nTo test this installation, try this command (after logging into wandb with `wandb login`):\n\n```bash\nrun_mc --config-name estimate_pi\n```\n\nwhich should run a monte carlo experiment to estimate the value of pi. See the experiments project in wandb to view the results of this experiment.\n\nTo install this package directly from the github reposity use the following commands:\n\n```bash\ngit clone https://github.com/rishavb123/ExperimentLab.git\ncd ExperimentLab\npip install -e .\n```\n\nAs a test, try running the following script:\n\n```bash\npython experiment_lab/experiments/examples/random_waits.py n_runs=20 n_run_method=parallel seed=0\n```\n\nFor specific optional dependencies use:\n\n```bash\npip install -e \".[{name}]\"\n```\n\nwhere `{name}` can be `all`, `ml`, `rl`, `rl-vid`, or `dev`.\n\n### Debugging Tips\n\n#### Recording Videos on RL experiments\n\nThe video recording wrapper from the stable baselines library requires a few dependencies that must be installed before it can be used.\n1. Install moviepy to your python environment. This can be done using through this package via:\n```bash\npip install \"experiment_lab[rl-vid]\"\n```\nor directly using,\n```bash\npip install moviepy\n```\n2. Install ffmpeg on your system using the following command (depending on your OS):\n- Ubuntu: `sudo apt install ffmpeg` \n- Mac: `brew instlal ffmpeg`\n- Windows: Follow the instructions [here](https://phoenixnap.com/kb/ffmpeg-windows). Note that I did not write or review this instructions.\n3. Make sure to set the location of the ffmpeg binary to the `$IMAGEIO_F\n\nAlso, it should be noted that there are some issues with using the multiprocessing vector environment with the video recorder. Ensure that the start_method set in the RL config is \"spawn\" (which is the default if it is left as None) for best results. On MacOS, see [this](https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr) page for potential problems with using \"fork\".\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A suite of flexible experiments of a variety of different tasks.",
    "version": "1.1.7",
    "project_urls": {
        "Repository": "https://github.com/rishavb123/ExperimentLab"
    },
    "split_keywords": [
        "experiment",
        " suite",
        " lab"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "44869eeb64492dca50971eb7d84624a8875bf6ca936b6a6444e2cdbb80db7a08",
                "md5": "6a48225322948bdaf5b76715f130e792",
                "sha256": "01f0afd91b5535ba03b787bedf71ae1cea554826411d7ba41b66978914613827"
            },
            "downloads": -1,
            "filename": "experiment_lab-1.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a48225322948bdaf5b76715f130e792",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 40728,
            "upload_time": "2024-04-24T04:18:59",
            "upload_time_iso_8601": "2024-04-24T04:18:59.055649Z",
            "url": "https://files.pythonhosted.org/packages/44/86/9eeb64492dca50971eb7d84624a8875bf6ca936b6a6444e2cdbb80db7a08/experiment_lab-1.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89b9e547170170090eace40a29e7daf162bbe03a4fc93685fe90d0ba2b883aab",
                "md5": "f5eb852526ee23c9c9d5666973165805",
                "sha256": "eb52ea46d2c6ba780961196d61a43536ea15d3f744faf994226170b2cc91a8b3"
            },
            "downloads": -1,
            "filename": "experiment_lab-1.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "f5eb852526ee23c9c9d5666973165805",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 27834,
            "upload_time": "2024-04-24T04:19:00",
            "upload_time_iso_8601": "2024-04-24T04:19:00.579466Z",
            "url": "https://files.pythonhosted.org/packages/89/b9/e547170170090eace40a29e7daf162bbe03a4fc93685fe90d0ba2b883aab/experiment_lab-1.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-24 04:19:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rishavb123",
    "github_project": "ExperimentLab",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "experiment-lab"
}
        
Elapsed time: 0.23391s