API Reference#
Package Sections#
Built-in Evaluators
Ready-to-use evaluator implementations for common ML tasks.
Command Line Interface
Command line interface for Brisk.
Configuration
Interface for defining what models to train.
Data
Handles data splitting and preprocessing.
Data Preprocessing
Applies transformations to a dataset before training.
Evaluation
Classes providing methods to evaluate models and plot results.
Reporting
Generates an interactive report from training results.
Services
Infrastructure services including logging, I/O, and metadata management.
Theme
Styling and file format settings for plots.
Training
Brings together the data and configuration to train models.
API Objects#
Object |
Description |
|---|---|
A collection of AlgorithmWrappers. |
|
Wraps a machine learning algorithm and provides an interface using the algorithm. |
|
Creates bar plots for categorical features. |
|
Abstract base class for all evaluators. |
|
Abstract base class for all services in the Brisk framework. |
|
Strategy for capturing experiment state for reruns. |
|
Computes statistics for categorical variables in datasets. |
|
Compares performance across multiple models. |
|
Provide an interface for creating experiment groups. |
|
Process the ExperimentGroups and prepare the required DataManagers. |
|
Computes confusion matrix for classification models. |
|
Computes statistics for continuous variables in datasets. |
|
Strategy for coordinating multiple rerun operations. |
|
Creates correlation matrix plots. |
|
Handles data splitting and preprocessing pipelines. Arguments are used to define the splitting strategy and preprocessing steps. |
|
Stores and analyzes training and testing datasets, providing methods for calculating descriptive statistics and visualizing feature distributions. |
|
Stores DataSplitInfo instances. |
|
Represents a dataset in the report. |
|
Base class for evaluators that compute dataset-level measures. |
|
Base class for evaluators that create dataset-level plots. |
|
Represents the differences between environments. |
|
Manages environment capture, comparison, and export for reproducible runs. |
|
Evaluates model performance using specified metrics. |
|
Evaluates model performance using cross-validation. |
|
Provides methods for evaluating models and generating plots. |
|
Registry for managing and discovering evaluators. |
|
Stores all the data needed for one experiment run. |
|
Create a que of Experiments from an ExperimentGroup. |
|
Groups experiments that will be run with the same settings. |
|
Data structure for feature distribution information. |
|
|
Formats log messages with a visual separator between log entries. |
|
Manages global service instances and dependencies. |
Creates histogram plots for dataset features. |
|
Performs hyperparameter optimization. |
|
Provides file input/output operations and data serialization. |
|
Manages logging configuration and handlers. |
|
Base class for evaluators that compute model performance measures. |
|
Manages experiment metadata and versioning information. |
|
Stores MetricWrapper instances that define evaluation metrics. |
|
Wraps a metric function and provides a convenient interface using the metric. |
|
Navigation bar configuration for reports. |
|
JSON encoder for NumPy arrays and data types. |
|
|
Information about a package and its version. |
JSON decoder that handles pickled objects. |
|
JSON encoder that handles pickled objects. |
|
Creates confusion matrix heatmap plots. |
|
Represents plot data and metadata for reports. |
|
Base class for evaluators that create model performance plots. |
|
Creates feature importance plots. |
|
Creates learning curve plots. |
|
Creates model comparison plots. |
|
Creates precision-recall curve plots. |
|
Creates predicted vs observed plots for regression models. |
|
Creates residual plots for regression models. |
|
Creates ROC curve plots for classification models. |
|
Configuration for plot appearance and styling. |
|
Creates SHAP value plots for model interpretability. |
|
Container for all report data and metadata. |
|
Renders HTML reports from training results. |
|
Context manager for report generation operations. |
|
Coordinates report generation and data collection. |
|
Manages experiment rerun capabilities and strategies. |
|
Abstract base class for rerun strategies. |
|
Base model with automatic number rounding for display. |
|
Bundles related services together for easier management. |
|
Represents tabular data for report display. |
|
Serializes theme objects using pickle and JSON encoding. |
|
|
Logs messages to stdout or stderr using tqdm. |
Coordinates the training process, loading the data and running the experiments. |
|
Provides common utility functions and helpers. |
|
Enumeration of version matching states. |
|
Defines the steps to take when training a model. |
|
Checks the environment compatibility with a previous run. |
|
|
Provides helper functions for the CLI. |
Creates a new project. |
|
Creates a synthetic dataset. |
|
Create a requirements.txt file from the environment captured during a previous experiment run. |
|
Finds the project root directory containing .briskconfig. |
|
Load a scikit-learn dataset by name. |
|
Load a scikit-learn dataset by name. |
|
Run the current experiment setup. |