Giter Club home page Giter Club logo

hyperopt's Introduction

hyperopt

A proof-of-concept pipeline for performing hyperparameter optimization of machine learning models with Nextflow.

Requirements

  • Unix-like operating system (Linux, macOS, etc)
  • Java >=11
  • Conda or Docker

Quickstart

  1. Install Nextflow (version 23.10.x or higher):

    curl -s https://get.nextflow.io | bash
  2. Launch the pipeline:

    # use conda natively (requires Conda)
    ./nextflow run nextflow-io/hyperopt -profile conda
    
    # use Wave containers (requires Docker)
    ./nextflow run nextflow-io/hyperopt -profile wave
  3. When the pipeline completes, you can view the training and prediction results in the results folder.

Note: the first time you execute the pipeline, Nextflow will take a few minutes to download the pipeline code from this GitHub repository and any related software dependencies (e.g. conda packages or Docker images).

Configuration

The hyperopt pipeline consists of the following steps:

  1. Download a dataset
  2. Split the dataset into train/test sets
  3. Visualize the train/test sets
  4. Train a variety of models on the training set
  5. Evaluate each model on the test set
  6. Select the best model based on evaluation score

You can control many aspects of this workflow with the pipeline parameters, including:

  • Enable/disable each individual step
  • Download a different dataset (default is wdbc, see OpenML.org to view available datasets)
  • Provide your own training data instead of downloading it
  • Provide your own pre-trained model and test data
  • Select different models (see the train module for all available options)

See the nextflow.config file for the list of pipeline parameters.

Cluster support

Since Nextflow provides an abstraction between the pipeline logic and the underlying execution environment, the hyperopt pipeline can be executed on a single computer or an HPC cluster without any modifications.

Visit the Nextflow documentation to see which HPC schedulers are supported, and how to use them.

Components

The hyperopt pipeline uses Python (>=3.10) and several Python packages for machine learning and data science. These dependencies are defined in the conda.yml file.

hyperopt's People

Contributors

bentsherman avatar pditommaso avatar

Watchers

 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.