Skip to main content

Jupyter widgets for hypernets

Project description

hboard-widget

Python Versions Downloads PyPI Version

中文

This project provides a visualization tool for experiment information based on jupyter notebook/ jupyterlab widget.

Installation

Install with pip

pip install hboard-widget

Install with conda

conda install -c conda-forge hboard-widget

Install with source code

  1. Create the required software environment:
  1. Clone the soure code:
git clone https://github.com/DataCanvasIO/HyperBoard.git
  1. Create a project:
cd HyperBoard/hboard-widget
pip install -e .

Example

The folllowing steps shows how to implement the experiment visualization in notebook

  1. Import the required modules:
import warnings
warnings.filterwarnings('ignore')

from sklearn.model_selection import train_test_split
from hypernets.examples.plain_model import PlainModel, PlainSearchSpace
from hypernets.experiment import make_experiment
from hypernets.tabular.datasets import dsutils
  1. Create an experiment
df = dsutils.load_boston()
df_train, df_eval = train_test_split(df, test_size=0.2)
search_space = PlainSearchSpace(enable_lr=False, enable_nn=False, enable_dt=False, enable_dtr=True)
experiment = make_experiment(PlainModel, df_train,
                             target='target',
                             search_space=search_space,
                             callbacks=[],
                             search_callbacks=[])
  1. Experiment visualization configurations
from hboard_widget import ExperimentSummary
experiment_summary_widget = ExperimentSummary(experiment)
display(experiment_summary_widget)
  1. Visualize the dataset information
from hboard_widget import DatasetSummary
dataset_summary_widget = DatasetSummary(experiment.get_data_character())
display(dataset_summary_widget)
  1. Visualize the experiment process
from hboard_widget import ExperimentProcessWidget
estimator = experiment.run(max_trials=3)

widget = ExperimentProcessWidget(experiment)
display(widget)

Find the project in Notebook experiment visualization notebook.ipynb.

Related project

Currently, HyperGBM has integrated this tool. The HyperGBM experiment could call the notebook widget visualization function and display the experiment dashboard. Please refer to HyperGBM: Experiment Visualization in Notebook

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hboard_widget-0.1.0-py2.py3-none-any.whl (8.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file hboard_widget-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hboard_widget-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for hboard_widget-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 580c2a2b92e0b5f85261ba8dc4094928e50d2cc3012951bed7f976d630948b80
MD5 62444addfb1be27a25c1fd6c23c0f4f5
BLAKE2b-256 d0d99f23acbb337c73a73bac550946c571cac84d72ae768892a6fac7ea8a2f78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page