Git Product home page Git Product logo

ray-tune-hyperparameter-search's Introduction

Hyperparameter Optimization with Ray Tune

Modzy Logo

Getting Started

This repository provides an example implementation of a Ray Tune hyperparameter search with a PyTorch training pipeline and MLflow logging. Below is an overview of the repository's contents:

  • requirements.txt: Python packages you can pip install that are required to run the code in this repository
  • hyperparam_search.py: Python script that loads the CIFAR dataset, defines the training pipeline, and kicks off a hyperparameter search with Ray Tune

Environment Setup

This section provides instructions for setting up your environment and installing dependencies you will need to execute the code in this repository.

Start by cloning this project into your directory and changing the directory:

git clone https://github.com/modzy/ray-tune-hyperparameter-search.git
cd ray-tune-hyperparameter-search

Next, in your Python environment (must be v3.7 or greater), create and activate a virtual environment with your preferred virtual environment tool (conda, pyenv, venv, etc.) These instructions will leverage Python's native venv module.

python -m venv venv

Activate environment.

For Linux or MacOS:

source venv/bin/activate

For Windows:

.\venv\Scripts\activate

Finally, use pip to install the python packages required to run the API:

pip install -r requirements.txt

You are all set! Continue following along to test out the hyperparameter search yourself.

Run Hyperparameter Search

If you'd like modify the code to add or remove parameters to tune, but to run the code as-is, simply execute the basic parameter search:

python hyperparam_search.py cifar basic_search

ray-tune-hyperparameter-search's People

Contributors

bmunday3 avatar

Stargazers

 avatar

Watchers

Seth Clark avatar Josh Sullivan avatar

ray-tune-hyperparameter-search's Issues

Error with requirements.txt

Hello,

I was trying to follow along your tutorial, but when I ran the command "pip install -r requirements.txt" I got this error:
ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cu111 (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0)
ERROR: No matching distribution found for torch==1.8.1+cu111

I don't have much experience with coding since I studied math in school.
Please help me

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.