WHY package

Submodules

WHY.config module

This is a docstring for config.

WHY.data_vis module

This is a docstrings for datavis

WHY.data_vis.vis_synthetic()

This is a docstring for datavis

Returns:

_type_: _description_

WHY.synthetic module

Synthetic data generation class, with callbacks and visualizations

class WHY.synthetic.SyntheticData(dataset='Make Classification', n_samples=1500, n_features=4, n_classes=3, n_inf=2)

Bases: object

Class for creating a synthetic data object with default parameters.

generator()

Engine that creates synthetic data.

Takes advantage the synthetic data generator provided by sklearn. The generator makes 5 data shapes available.

Returns:

X: ndarray of shape(n_samples, 2) The generated samples. y: ndarray of shape(n_samples,) The integer labels for class membership of each sample.

WHY.synthetic.update_layout(attrname, old, new)

Callback function that updates the sliders layout as datasets change.

Args:

attrname (_type_): _description_ old (_type_): _description_ new (_type_): _description_

WHY.synthetic.update_samples_or_dataset(attrname, old, new)

Callback function that updates samples as values are scrubbed with sliders.

Args:

attrname (_type_): _description_ old (_type_): _description_ new (_type_): _description_

Module contents