Skip to main content

hyperpy

HyperPy: An automatic hyperparameter optimization framework

PyPI - Status Documentation Status GitHub top language GitHub PyPI - Python Version PyPI - Wheel

Description

contributions welcome

HyperPy: Library for automatic hyperparameter optimization. Build on top of Optuna to perform hyperparameter optimization with low code.

This library corresponds to part of the work of Sergio A. Mora Pardo

👶 Our current version: PyPI version

Installation

GitHub Release Date GitHub last commit

You can install hyperpy with pip:

# pip install py-hyperpy

Example

Import the library:

import hyperpy as hy
from hyperpy import ExampleConfig # Just for example

Reading data:

data=ExampleConfig()
train, test, sub = data.readData()

Extract features:

feat_X = train.filter(['Pclass','Age', 'SibSp', 'Parch','Fare']).values
Y = train.Survived.values

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

Documentation

Documentation is available at hyperpy

Working on tutorial, meanwhile explore documentation.

Development GitHub issues GitHub issues

Source code is available at hyperpy

Contact

Buy Me A Coffee


Metadata

Release files for py-hyperpy 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-hyperpy 0.0.5
File Size Uploaded
py-hyperpy-0.0.5.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-hyperpy 0.0.5
File Interpreter ABI Platform
py_hyperpy-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / py-hyperpy-0.0.5.tar.gz

Download URL py-hyperpy-0.0.5.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1c7978bf39a2788d8797de567fa3351093f3156c15f9d86e71139607af03e970
BLAKE2b-256 checksum
How to use checksums
c62dc8a173535f80b35eeff8dba66eb47ca8deaa48ac303a5f9db85b6790b642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / py_hyperpy-0.0.5-py3-none-any.whl

Download URL py_hyperpy-0.0.5-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0b14df37613891d186f581415995eb978321c629a20123b6861ff76538a8559
BLAKE2b-256 checksum
How to use checksums
87161fbf5c1d9ba297b7c6b4ce751ba077dbd7e29efcae8e7c8a34896dddccf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page