Git Product home page Git Product logo

automl_project_2023's Introduction

Final Project

This repository contains all things needed for the final projects. Your task is to optimize a NN by AutoML means. For details, please refer to the project PDF.

(Recommended) Setup new clean environment

Use a package manager, such as the one provided by your editor, python's built in venv or miniconda.

Conda

Subsequently, for example, run these commands, following the prompted runtime instructions:

conda create -n automl python=3.10
conda activate automl
pip install -r requirements.txt

Venv

# Make sure you have python 3.8/3.9/3.10
python -V
python -m venv my-virtual-env
./my-virtual-env/bin/activate
pip install -r requirements.txt

SMAC

If you have issues installing SMAC, follow the instructions here.

Data

You need to pre-download all the data required by running python datasets.py.

Stores by default in a ./data directory. Takes under 20 seconds to download and extract.

Tips

All code we provide does consider validation and training sets. You will have to implement a method to use the test set yourself.

multi_fidelity_template.py

  • Example of how to use SMAC with multi-fidelity optimization.
  • The example uses image size as the fidelity.
  • To get quick results, you can lower the image size to 4x4 for a quick debug signal if you like. However, make sure when comparing to any baseline to always use the maximum fidelity of 32x32.
  • The configsapce that we used to get the baseline performance is in default_configspace.json.

mf_default.py

  • This script leverages SMAC for multifidelity optimization. It operates within a basic default configuration space.

mf_proxy_final.py

  • Utilizing the new configuration space and integrating proxy optimization with warm-start techniques, this code aims to enhance model performance.

mf_proxy_evolution.py

  • By incorporating Regularized Evolution alongside Proxy optimization, this script aims to further refine final model performance.

earlystopping.py

  • This Python file encapsulates the implementation of the early stopping mechanism, a crucial component for improving optimization efficiency.

automl_project_2023's People

Contributors

kbpranav avatar

Watchers

Kostas Georgiou avatar  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.