hboard-widget
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
Build from source code need following requirements:
The project need frontend of hboard to be built in advance.
Clone the source code:
git clone https://github.com/DataCanvasIO/HyperBoard.git
Build for development:
cd ./hboard-widget
pip install -e .
jupyter nbextension install --py --symlink --overwrite --sys-prefix hboard_widget
jupyter nbextension enable --py --sys-prefix hboard_widget
jupyter labextension develop --overwrite hboard_widget
You need to rebuild the JS when you make a code change:
cd ./hboard-widget/js
yarn run build
Example
The following steps shows how to implement the experiment visualization in notebook
- 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
- 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=[])
- Experiment visualization configurations
from hboard_widget import ExperimentSummary
experiment_summary_widget = ExperimentSummary(experiment)
display(experiment_summary_widget)
- Visualize the dataset information
from hboard_widget import DatasetSummary
dataset_summary_widget = DatasetSummary(experiment.get_data_character())
display(dataset_summary_widget)
- 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
Metadata
Release files for hboard-widget 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hboard_widget-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for hboard_widget-0.1.1-py2.py3-none-any.whl |
Release files / hboard_widget-0.1.1-py2.py3-none-any.whl
| Download URL | hboard_widget-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.3 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b1a09f358efd71d5cffcaf646024490a12f1b4be8ca76c9cd9ee48d9d02d88c7
|
|
BLAKE2b-256 checksum How to use checksums |
67169fa88f85ad28bf10501d7c03f67e9c8ed9b03bf957fdfca91164fe233b30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Security for hboard-widget 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.