/extend_auto_sklearn

Primary LanguagePythonOtherNOASSERTION

extend_auto_sklearn

Automatically extend the auto-sklearn package with custom classes.

pre-commit Code style: black

Installation

  1. Create new conda environment to work in.
$ sudo apt-get install build-essential swig # ONLY IF RUNNING UBUNTU
$ conda create -n automl python=3.7
$ conda activate automl
$ conda install gxx_linux-64 gcc_linux-64 swig
  1. Install auto-sklearn.
$ curl https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt | xargs -n 1 -L 1 pip install
$ pip3 install auto-sklearn
  1. Clone this repository.
$ git clone https://github.com/mahynski/extend_auto_sklearn
  1. Simply add this directory to your PYTHONPATH, or locally in each instance (i.e., sys.path.append()) and import the model, as usual, to automatically extend auto-sklearn.
$ echo 'export PYTHONPATH=$PYTHONPATH:/path/to/module/' >> ~/.bashrc
$ source ~/.bashrc
import extend_auto_sklearn