Install

Installation

HyperPy (py-hyperpy in PyPi) is a Python library for build an automatic hyperparameter optimization.

You can install hyperpy with pip:

(.venv) $ pip install py-hyperpy

Example

import library:

import hyperpy as hy

Run the optimization:

running=hy.run(feat_X, Y)
study = running.buildStudy()

See the results:

print("best params: ", study.best_params)
print("best test accuracy: ", study.best_value)
best_params, best_value = hy.results.results(study)

Note

  • The function hy.run() return a Study object. And only needs: Features, target. In the example: best test accuracy = 0.7407407164573669

  • feat_X: features in dataset

  • Y: target in dataset

Warning

At moment only solves binary clasification problems.

Note

This project is active development.