Scikit-plots APIs
0.5.dev0+git.20260409.dbbf22f - April 09, 2026 03:39 UTC

APIs Reference#

This is the class and function reference of scikit-plots. Please refer to the full user guide for further details, as the raw specifications of classes and functions may not be enough to give full guidelines on their uses. For reference on concepts repeated across the APIs, see scikit-plots Glossary.

Object

Description

__version__

str(object=’’) -> str

__version_iso_8601__

str(object=’’) -> str

online_help

Open the online documentation search page in the default web browser.

config_context

Context manager for global scikit-plots configuration.

get_config

Retrieve current values for configuration set by set_config.

set_config

Set global scikit-plots configuration.

show_config

Show libraries and system information on which SciPy was built

show_versions

Print or return debugging information about the system, Python, dependencies, and hardware.

get_logger

Return SP (scikitplot) logger instance.

logger

logging (alias, logger) module provide unified both Python logging and logging.Logger utilities.

_sphinx_ai_assistant

add_ai_assistant_context

scikitplot._externals._sphinx_ai_assistant

generate_llms_txt

scikitplot._externals._sphinx_ai_assistant

generate_markdown_files

scikitplot._externals._sphinx_ai_assistant

html_to_markdown

scikitplot._externals._sphinx_ai_assistant

Index

Annoy Approximate Nearest Neighbors Index.

scikitplot.annoy._annoy

Annoy

Compiled with GCC/Clang. Using 512-bit AVX instructions.

AnnoyIndex

Compiled with GCC/Clang. Using 512-bit AVX instructions.

Index

High-level ANNoy index composed from mixins.

CompressMode

Compression used for "byte" pickling by PickleMixin.

IndexIOMixin

Mixin adding explicit Annoy-native persistence helpers.

MetaMixin

Mixin that exports and restores index metadata.

NDArrayMixin

NumPy / SciPy / pandas interoperability for Annoy-like indexes.

PickleMixin

Mixin adding pickle support.

PickleMode

Persistence strategy used by PickleMixin.

PlottingMixin

Mixin that adds convenient plotting methods to high-level Annoy wrappers.

VectorOpsMixin

User-facing neighbor queries for Annoy-like backends.

plot_pca_2d_projection

Plots the 2-dimensional projection of PCA on a given dataset.

plot_pca_component_variance

Plots PCA components’ explained variance ratios. (new in v0.2.2)

plot_feature_importances

Generate a plot of a sklearn model’s feature importances.

plot_learning_curve

Generates a plot of the train and test learning curves for a classifier.

plot_elbow

Plot the elbow curve for different values of K in KMeans clustering.

plot_residuals_distribution

Plot residuals and fit various distributions to assess their goodness of fit.

plot_classifier_eval

Generates various evaluation plots for a classifier, including confusion matrix,

plot_confusion_matrix

Generates a confusion matrix plot from predictions and true labels.

plot_precision_recall

Generates the Precision-Recall AUC Curves from labels and predicted scores/probabilities.

plot_roc

Generates the ROC AUC curves from labels and predicted scores/probabilities.

plot_calibration

Plot calibration curves for a set of classifier probability estimates.

plot_silhouette

Plots silhouette analysis of clusters provided.

validate_labels

Validates the labels passed into arguments such as true_labels or pred_labels

scikitplot.api._utils

cumulative_gain_curve

Generate the data points necessary to plot the Cumulative Gain curve for binary classification tasks.

scikitplot.api._utils

binary_ks_curve

Generate the data points necessary to plot the Kolmogorov-Smirnov (KS)

scikitplot.api._utils

validate_plotting_kwargs

Validate the provided axes and figure or create new ones if needed.

scikitplot.api._utils

expit

Compute the sigmoid (expit) of a scalar input.

log_expit

Compute the natural logarithm of the sigmoid (expit) of a scalar input.

logit

Compute the logit (inverse sigmoid) of a scalar input.

py_print

py_print(message: str = ‘Hello, from Pybind11 C++!’) -> None

sigmoid

Compute the sigmoid function for the input array x.

softmax

Compute the softmax function.

logsumexp

Compute the log of the sum of exponentials of input elements.

log_softmax

Compute the logarithm of the softmax function.

_annoy

High-level Python interface for the C++ ANNoy backend.

annoylib

Compiled with GCC/Clang(Using 512-bit AVX instructions).

Annoy

Compiled with GCC/Clang. Using 512-bit AVX instructions.

AnnoyIndex

Compiled with GCC/Clang. Using 512-bit AVX instructions.

_astropy

Astropy is a package intended to contain core functionality and some

stats

This subpackage contains statistical tools provided for or used by Astropy.

_f2py

Fortran to Python Interface Generator.

get_include

Return the directory that contains the fortranobject.c and .h files.

_numcpp

__bibtex__

str(object=’’) -> str

__citation__

str(object=’’) -> str

ChunkerBase

Abstract base class for all text chunkers.

DefaultFilter

Standard noise filter ported and improved from remarx’s include_sentence.

DocumentReader

Abstract base class for all format-specific document readers.

DummyReader

A no-op reader that validates source existence and accessibility.

FilterBase

Abstract base class for corpus document filters.

PipelineGuard

Wrap any document stream with resilience, deduplication, and checkpointing.

_MultiSourceReader

Chains multiple DocumentReader instances into one stream.

_is_url

Return True if s is a string that looks like an HTTP(S) URL.

ChunkerBridge

Adapter that wraps a new-style chunker as a ChunkerBase-

FixedWindowChunkerBridge

Bridge for FixedWindowChunkerChunkerBase contract.

ParagraphChunkerBridge

Bridge for ParagraphChunkerChunkerBase contract.

SentenceChunkerBridge

Bridge for SentenceChunkerChunkerBase contract.

WordChunkerBridge

Bridge for WordChunkerChunkerBase contract.

bridge_chunker

Wrap chunker in a bridge if it is a new-style chunker.

FixedWindowChunker

Produce fixed-size sliding-window chunks over a document.

FixedWindowChunkerConfig

WindowUnit

Unit of measurement for window size and step.

ParagraphChunker

Split a document into paragraph-level Chunk objects.

ParagraphChunkerConfig

Configuration for ParagraphChunker.

SentenceBackend

Supported sentence-splitting backends.

SentenceChunker

Split a document into sentence-level Chunk objects.

SentenceChunkerConfig

Configuration for SentenceChunker.

LemmatizationBackend

Lemmatization backend.

StemmingBackend

Stemming algorithm.

StopwordSource

Stopword list source.

TokenizerBackend

Word tokenisation backend.

WordChunker

Process a document at word level, producing normalised token chunks.

WordChunkerConfig

Configuration for WordChunker.

BuildResult

Result of a corpus build operation.

BuilderConfig

Configuration for CorpusBuilder.

CorpusBuilder

Unified corpus builder — end-to-end pipeline orchestrator.

BuilderFactories

Component factory callables for FactoryCorpusBuilder.

CustomChunker

Wrap any callable as a ChunkerBase.

CustomEnricherConfig

Custom backend callables for CustomNLPEnricher.

CustomFilter

Wrap any callable as a FilterBase.

CustomNLPEnricher

NLPEnricher extended with

CustomNormalizer

Wrap any callable as a NormalizerBase.

CustomSimilarityIndex

SimilarityIndex extended with a

FactoryCorpusBuilder

HookableCorpusPipeline

PipelineHooks

Lifecycle callbacks for HookableCorpusPipeline.

DEFAULT_CACHE_DIR

Path subclass for non-Windows systems.

DEFAULT_MODEL

str(object=’’) -> str

EmbeddingEngine

Multi-backend sentence embedding engine with SHA-256 file caching.

DEFAULT_AUDIO_MODEL

str(object=’’) -> str

DEFAULT_IMAGE_MODEL

str(object=’’) -> str

DEFAULT_TEXT_MODEL

str(object=’’) -> str

LLMTrainingExporter

Export a corpus with embeddings to LLM training formats.

MultimodalEmbeddingEngine

Unified embedding engine for any CorpusDocument

BUILTIN_STOPWORDS

frozenset() -> empty frozenset object

EnricherConfig

Configuration for NLPEnricher.

NLPEnricher

Pipeline component that populates NLP enrichment fields on

export_documents

Export a list of documents to output_path in the given format.

load_documents

Load CorpusDocument instances

DedupLinesNormalizer

Remove exact duplicate lines while preserving first-occurrence order.

HTMLStripNormalizer

Remove HTML and XML tags from the document text.

LanguageDetectionNormalizer

Detect document language and set CorpusDocument.language.

LowercaseNormalizer

Convert the document text to lowercase.

NormalizationPipeline

Apply a sequence of normalisers in order.

NormalizerBase

Abstract base class for all text normalisers.

UnicodeNormalizer

Apply Unicode normalisation (NFC, NFD, NFKC, or NFKD).

WhitespaceNormalizer

Collapse runs of whitespace and optionally strip leading/trailing space.

NormalizerConfig

Configuration for TextNormalizer.

TextNormalizer

Pipeline component that populates normalized_text on

normalize_text

Normalise text according to config.

CorpusPipeline

Orchestrates the full corpus ingestion pipeline.

PipelineResult

Immutable summary of a single pipeline run.

create_corpus

Create and export a corpus from a single source file.

ALTOReader

ALTO XML reader for scanned document archives.

AudioReader

Text extraction from audio files via companion transcript/lyrics parsing,

CustomReader

Fully user-customizable reader for any file extension and resource type.

ImageReader

OCR-based text extraction from raster image files.

MarkdownReader

Markdown document reader.

PDFReader

PDF document reader with pdfminer.six → pypdf cascade.

ReSTReader

reStructuredText document reader.

TEIReader

TEI/XML document reader with dramatic structure extraction.

TextReader

Plain-text document reader.

VideoReader

Text extraction from video files via subtitle parsing and/or

WebReader

Fetch a web page and extract structured text via BeautifulSoup.

XMLReader

Generic XML document reader with configurable XPath.

YouTubeReader

Extract the transcript of a YouTube video using youtube-transcript-api.

ZipReader

Generic ZIP archive reader — dispatches each member to its natural reader.

SearchConfig

Configuration for similarity search.

SearchResult

A single search result.

SimilarityIndex

Multi-mode similarity index over CorpusDocument collections.

CorpusSource

Declarative descriptor for one or more document sources.

SourceEntry

A single resolved source entry yielded by CorpusSource.iter_entries.

SourceKind

Discriminant for the kind of source an entry represents.

DEFAULT_COMPILER_DIRECTIVES

build_extension_module

Compile and import an extension module (module-only convenience wrapper).

build_extension_module_result

Compile and import an extension module, with deterministic caching.

build_extension_package_from_code_result

Compile a package of multiple extension modules from in-memory code strings.

build_extension_package_from_paths_result

Compile a package of multiple extension modules from existing .pyx files.

CacheEntry

A compiled module cache entry.

PackageCacheEntry

A compiled package cache entry (multi-module build).

find_entries_by_name

Find module cache entries matching an exact module name.

find_entry_by_key

Find a single module cache entry by key.

find_package_entry_by_key

Find a single package cache entry by key.

is_valid_key

Return True if key is a valid cache key.

iter_all_entry_dirs

Return all cache entry directories whose name is a valid cache key.

iter_cache_entries

List module cache entries found under the cache directory.

iter_package_entries

List package cache entries found under the cache directory.

make_cache_key

Create a deterministic cache key from a JSON-serializable mapping.

peek_cache_dir

Resolve the cache directory path without creating it.

read_meta

Read meta.json from a build directory.

register_artifact_path

Register an existing compiled extension artifact into the cache registry.

resolve_cache_dir

Resolve and create the cache directory.

runtime_fingerprint

Compute a runtime fingerprint for caching correctness.

source_digest

SHA-256 digest of source bytes.

write_meta

Write meta.json in the build directory atomically.

CustomCompilerProtocol

Structural protocol for custom compiler callables.

CompilerRegistry

Thread-unsafe module-level registry of custom compiler callables.

register_compiler

Register a custom compiler in the module-level registry.

get_compiler

Retrieve a registered custom compiler by name.

list_compilers

Return sorted list of registered custom compiler names.

pure_python_prereqs

Check prerequisites pure Python, setuptools only.

cython_cpp_prereqs

Check prerequisites compile C++ via Cython.

full_stack_prereqs

Check prerequisites full stack setuptools, Cython, pybind11, and NumPy.

pybind11_only_prereqs

Check prerequisites pybind11 only.

c_api_prereqs

Check prerequisites own custom C-API.

pybind11_include

Return the pybind11 include directory, or None if not installed.

numpy_include

Return the NumPy C-API include directory, or None if not installed.

collect_c_api_sources

Collect C/C++ source files from one or more files, directories, or globs.

collect_header_dirs

Collect unique directories that contain C/C++ header files.

PybindCompiler

Built-in custom compiler: pybind11-only projects.

CApiCompiler

Built-in custom compiler: NumPy C-API projects.

cache_stats

Compute cache statistics.

gc_cache

Deterministically garbage-collect cached build entries.

import_extension

Import an extension module from an explicit artifact path.

import_extension_from_bytes

Import an extension module from raw artifact bytes.

import_extension_from_path

Import an extension module from a filesystem path.

build_lock

Acquire an exclusive build lock via atomic directory creation.

list_pins

List the current alias→key mappings.

pin

Pin a cache key under a human-friendly alias.

resolve_pinned_key

Resolve an alias to a cache key.

unpin

Remove an alias pin.

ProfileDefaults

Normalized defaults produced by applying a profile.

apply_profile

Apply a profile with strict precedence rules.

is_windows

Return True if running on Windows.

resolve_profile

Resolve a profile name to deterministic defaults.

build_package_from_code

Build and import a multi-module extension package and return loaded modules.

build_package_from_code_result

Build and import a multi-module extension package from code strings.

build_package_from_paths

Build and import a multi-module extension package and return loaded modules.

build_package_from_paths_result

Build and import a multi-module extension package from .pyx file paths.

check_build_prereqs

Check whether build prerequisites are importable.

compile_and_load

Compile and import a Cython extension module and return the loaded module.

compile_and_load_result

Compile and import a Cython extension module from source text.

cython_import

Compile/import a Cython module from a .pyx file and return the loaded module.

cython_import_all

Compile and import all .pyx files in a directory.

cython_import_result

Compile/import a Cython module from a .pyx file.

export_cached

Export a cache entry directory to a destination folder.

get_cache_dir

Resolve (and create) the cache root directory.

import_artifact_bytes

Import a compiled extension artifact from raw bytes.

import_artifact_path

Import a compiled extension artifact from a path.

import_cached

Import a cached module entry and return the loaded module.

import_cached_by_name

Import the newest cached module entry matching module_name.

import_cached_package

Import a cached package and return the loaded modules.

import_cached_package_result

Import a cached package entry by cache key.

import_cached_result

Import a cached module entry by cache key.

import_pinned

Import a pinned alias and return the loaded module(s).

import_pinned_result

Import a pinned alias.

list_cached

List cached module entries.

list_cached_packages

List cached package entries.

purge_cache

Delete the entire cache directory.

register_cached_artifact_bytes

Register a compiled extension artifact from bytes and import it.

register_cached_artifact_path

Register an existing compiled extension artifact on disk, then import it.

BuildResult

Result of compiling/importing a single Cython extension module.

CacheGCResult

Result of a cache garbage-collection operation.

CacheStats

Cache statistics for the compiled-artifact cache root.

PackageBuildResult

Result of compiling/importing a package of extension modules.

DEFAULT_SECURITY_POLICY

Immutable security policy applied to build inputs before compilation.

RELAXED_SECURITY_POLICY

Immutable security policy applied to build inputs before compilation.

SecurityError

Raised when a build input violates the active SecurityPolicy.

SecurityPolicy

Immutable security policy applied to build inputs before compilation.

is_safe_compiler_arg

Return True when a compiler argument string is safe to pass.

is_safe_macro_name

Return True when a C preprocessor macro name is safe to define.

is_safe_path

Return True when a filesystem path does not contain traversal sequences.

validate_build_inputs

Validate build inputs against a SecurityPolicy.

TemplateInfo

Structured metadata for a template.

build_package_example

Build and import a multi-module package example and return loaded modules.

build_package_example_result

Build and import a multi-module package example and return a structured result.

compile_template

Compile and import a Cython template and return the loaded module.

compile_template_result

Compile and import a Cython template and return a structured result.

copy_workflow

Copy a workflow template folder to a destination directory.

generate_sphinx_template_docs

Generate Sphinx .rst pages listing templates and their usage.

get_package_example_path

Resolve a package example name to its on-disk folder path.

get_template_path

Resolve a template ID to an on-disk path.

get_workflow_path

Resolve a workflow name to its on-disk folder path.

list_package_examples

List available multi-module package examples.

list_templates

List available templates.

list_workflows

List available workflow template folders.

load_package_example_metadata

Load package example metadata from package.meta.json.

load_template_metadata

Load template metadata from an adjacent *.meta.json file.

read_template

Read template source text.

read_template_info

Read metadata for a template and return a TemplateInfo.

template_root

Return the on-disk template root directory.

workflow_cli_template_path

Return the workflow CLI template path.

sanitize

Convert an arbitrary string into a valid Python module name.

get_data_home

Return a path to the cache directory for example datasets.

get_dataset_names

Report available example datasets, useful for reporting issues.

load_dataset

Load an example dataset from the online repository (requires internet).

print_labels

Display a legend for the abbreviations of decile table column names.

decile_table

Generate the Decile Table from labels and probabilities.

plot_cumulative_gain

Generate the Decile-wise Lift Plot from labels and probabilities.

plot_lift

Generate the Decile based cumulative Lift Plot from labels and probabilities.

plot_lift_decile_wise

Generate the Decile-wise Lift Plot from labels and probabilities.

plot_ks_statistic

Generate the KS Statistic Plot from labels and probabilities.

report

Generate a decile table and four plots.

ModelPlotPy

ModelPlotPy decile analysis.

ModelPlotPy

Decile/ntile analysis for sklearn classifiers.

plot_response

Plot response curve.

plot_cumresponse

Plot cumulative response curve.

plot_cumlift

Plot cumulative lift curve.

plot_cumgains

Plot cumulative gains curve.

plot_all

Plot response, cumulative response, cumulative lift, and cumulative gains as a 2x2 panel.

plot_costsrevs

Plot costs and revenues curves.

plot_profit

Plot profit curve.

plot_roi

Plot ROI (return on investment) curve.

ModuleDeprecationWarning

Module deprecation warning.

ScikitplotException

Generic exception thrown to surface failure information about external-facing operations.

VisibleDeprecationWarning

Visible deprecation warning.

enable_ann_imputer

Enables ANNImputer

pipeline

ENVELOPES

Mapping of envelope types to amplitude-modulation functions.

compose_as_waveform

Generate a concatenated waveform from a musical composition input.

play_waveform

Play audio from a NumPy array using either IPython (for Jupyter) or sounddevice.

plot_waveform

Plot the waveform of mono or multi-channel audio data.

save_waveform

Save waveform to an audio file using specified or auto-selected backend.

save_waveform_as_mp3

Save waveform as an MP3 file using pydub and ffmpeg, with support for mono or stereo.

sheet_to_note

Convert input sheet (str/list/dict) to a list of (note, octave, duration).

sheet_converter

Display parsed notes or note frequencies from a musical sheet.

serialize_sheet

Serialize sheet notes to JSON or YAML string.

export_sheet

Enable serialization of compositions or note sheets.

array_api_compat

NumPy Array API compatibility library

array_api_extra

Extra array functions built on top of the array API standard.

ProbScale

A probability scale for matplotlib Axes.

probplot

Probability, percentile, and quantile plots.

plot_pos

Compute the plotting positions for a dataset. Heavily borrows from

fit_line

Fits a line to x-y data in various forms (linear, log, prob scales).

_seaborn

_sphinxext

figmpl_directive

Add a figure-mpl directive that is a responsive version of figure.

mathmpl

A role and directive to display mathtext in Sphinx.

plot_directive

A directive for including a Matplotlib plot in a Sphinx document.

roles

Custom roles for the Matplotlib documentation.

sphinx_tabs_patch

Sphinx compatibility shim for docutils backrefs.

_tweedie

Tweedie Distribution Module.

tweedie

An instance of tweedie_gen, providing Tweedie distribution functionality.

tweedie_gen

A Tweedie continuous random variable inherited scipy.stats.rv_continuous.

ANNImputer

Approximate K-nearest-neighbours (KNN) imputer with pluggable ANN backends.

CRITICAL

int([x]) -> integer

DEBUG

int([x]) -> integer

ERROR

int([x]) -> integer

FATAL

int([x]) -> integer

INFO

int([x]) -> integer

NOTSET

int([x]) -> integer

WARN

int([x]) -> integer

WARNING

int([x]) -> integer

AlwaysStdErrHandler

A custom logging handler inherited from StreamHandler.

GoogleLogFormatter

A custom logging formatter inherited from Formatter.

getEffectiveLevel

Return the effective level for the scikit-plots logger.

get_logger

Return SP (scikitplot) logger instance.

get_verbosity

Return the current verbosity level.

setLevel

Set the logger’s level.

set_verbosity

Set the verbosity level.

log

Log a message at the specified log level.

log_every_n

Log once per n calls from the same call site.

log_first_n

Log only for the first n calls from the same call site.

log_if

Log only if a condition is True.

vlog

Log a message at the specified log level.

debug

Log a message at the DEBUG log level.

info

Log a message at the INFO log level.

warning

Log a message at the WARNING log level.

warn

Log a message at the WARN -> WARNING log level.

error

Log a message at the ERROR log level.

error_log

Log an error-like message at a specified level.

exception

Log a message with severity ‘ERROR’ on the root logger.

TaskLevelStatusMessage

Compatibility wrapper for legacy call sites.

critical

Log a message at the CRITICAL log level.

fatal

Log a message at the FATAL -> CRITICAL log level.

MemoryMap

Memory-mapped region with automatic resource management.

mmap_region

mmap_region(int size: int, int prot: int = 0x3, int flags: int = 0x22, int fd: int = -1, int offset: int = 0) -> MemoryMap

DEFAULT_MLFLOW_SERVER_FLAGS

frozenset() -> empty frozenset object

MlflowServerCliCaps

Parsed capability set for mlflow server CLI flags.

ensure_flags_supported

Validate that all long-form CLI flags in args are supported.

get_mlflow_server_cli_caps

Get supported mlflow server flags for the installed MLflow version.

import_mlflow

Import MLflow lazily with a user-friendly error.

resolve_download_artifacts

Resolve a canonical artifact download function across MLflow versions.

ServerConfig

Configuration that maps directly to mlflow server CLI flags.

SessionConfig

Session-level configuration for scikitplot.mlflow.session.

running_in_docker

Detect whether the current process is running in a Docker container.

MlflowProvider

A customizable provider for MLflow-like libraries.

get_provider

Retrieve the currently active MLflow provider.

set_provider

Set the active MLflow provider globally.

use_provider

Temporarily set the MLflow provider for a context block.

EnvSnapshot

Full snapshot of process environment for strict restoration.

apply_env

Apply .env and explicit overrides to os.environ.

parse_dotenv

Parse a minimal .env file containing KEY=VALUE assignments.

MlflowCliIncompatibleError

Raised when a requested mlflow server option is not supported by the installed MLflow.

MlflowIntegrationError

Base exception for scikitplot.mlflow errors.

MlflowNotInstalledError

Raised when MLflow is required but not installed.

MlflowServerStartError

Raised when the managed MLflow server fails to start or exits prematurely.

SecurityPolicyViolationError

Raised when an operation is rejected by the active SecurityPolicy.

ArtifactsFacade

Artifact helper facade bound to a specific MLflow client/URI.

ModelsFacade

Model helper facade bound to a session-bound MLflow client.

DEFAULT_PROJECT_MARKERS

Built-in immutable sequence.

ProjectConfig

Project-level configuration for MLflow usage across multiple scripts.

dump_project_config_yaml

Write a ProjectConfig to a YAML file.

ensure_local_store_layout

Ensure local backend/artifact directories exist.

find_project_root

Find a project root directory deterministically.

get_project_markers

Resolve project markers deterministically.

load_project_config

Load project MLflow config from TOML or YAML based on file extension.

load_project_config_toml

Load project MLflow config from a TOML file.

load_project_config_yaml

Load project MLflow config from a YAML file.

normalize_mlflow_store_values

Normalize local store values for consistent multi-script usage.

project_markers

Temporarily override module default markers for a block.

set_project_markers

Set the module default markers.

wait_tracking_ready

Wait until the MLflow tracking REST API responds.

DEFAULT_SECURITY_POLICY

Declarative security policy for scikitplot.mlflow operations.

RELAXED_SECURITY_POLICY

Declarative security policy for scikitplot.mlflow operations.

SecurityPolicy

Declarative security policy for scikitplot.mlflow operations.

get_security_policy

Return the currently active SecurityPolicy, or None.

security_policy

Temporarily activate a SecurityPolicy for a context block.

set_security_policy

Set the active SecurityPolicy globally.

SpawnedServer

Spawned MLflow server process state.

build_server_args

Build the CLI args for mlflow server from a ServerConfig.

build_server_command

Build a deterministic mlflow server command.

spawn_server

Spawn an MLflow server subprocess.

MlflowHandle

A handle that proxies the upstream mlflow module while adding session context.

session

Create a strict, context-managed MLflow session.

session_from_file

Create an MLflow session using a shared project config file (TOML or YAML).

session_from_toml

Create an MLflow session using a shared project TOML config.

MlflowVersion

Parsed MLflow version.

is_mlflow_installed

Check whether MLflow is installed in the current Python environment.

mlflow_version

Retrieve the installed MLflow version (if available).

WorkflowPaths

Standardized project config paths used by the workflow.

builtin_config_path

Return the path to the built-in demo config shipped with the package.

default_project_paths

Compute standard config file paths for a project.

export_builtin_config

Export the built-in demo config into the current project.

patch_experiment_name_in_toml

Patch experiment_name = ... in a TOML config deterministically.

run_demo

Run a beginner-friendly end-to-end demo workflow.

workflow

Run the built-in end-to-end MLflow workflow demo.

get_include

Return the absolute path to the NumCpp C++ headers include directory.

dot

dot(a: numpy.ndarray, b: numpy.ndarray) -> numpy.ndarray

DummyCodeEncoder

Encode categorical features into dummy/indicator 0/1 variables.

GetDummies

Multi-column multi-label string column one-hot encoder [Rbcee2ffc57f9-1].

Kiss32Random

32-bit KISS RNG with complete serialization support.

Kiss64Random

Low-level 64-bit KISS RNG with context manager support.

KissRandom

Factory function for auto-detecting 32-bit vs 64-bit RNG.

KissSeedSequence

Seed sequence compatible with numpy.random.SeedSequence.

KissBitGenerator

NumPy-compatible BitGenerator using KISS algorithm with complete serialization.

KissGenerator

High-level random number generator using KISS algorithm.

KissRandomState

NumPy RandomState-compatible interface with complete serialization.

default_rng

Create default KISS random number generator.

kiss_context

Context manager for temporary RNG.

choice

Random sample from array.

integers

Random integers in [low, high) or [low, high].

normal

Normal distribution (Box-Muller transform).

permutation

Randomly permute sequence or return permuted range.

random

Random floats in [0, 1).

shuffle

Shuffle array in-place (Fisher-Yates algorithm).

uniform

Uniform distribution in [low, high).

aucplot

Plot PR or ROC curves with a seaborn-like API.

evalplot

Visualization of the Confusion Matrix [Ra7e29df24177-1] alongside a text report showing key classification metrics.

decileplot

Given binary labels y_true (0/1) and probabilities y_score 1d array, compute/plot a decile [Rd1ed195c7ca1-2] table.

print_labels

Pretty-print the legend of decile table column names.

Events

Bayesian blocks fitness for binned or unbinned events.

FitnessFunc

Base class for bayesian blocks fitness functions.

PointMeasures

Bayesian blocks fitness for point measures.

RegularEvents

Bayesian blocks fitness for regular events.

bayesian_blocks

Compute optimal segmentation of data with Scargle’s Bayesian Blocks.

binned_binom_proportion

Binomial proportion and confidence interval in bins of a continuous

binom_conf_interval

Binomial proportion confidence interval given k successes,

bootstrap

Performs bootstrap resampling on numpy arrays.

cdf_from_intervals

Construct a callable piecewise-linear CDF from a pair of arrays.

fold_intervals

Fold the weighted intervals to the interval (0,1).

gaussian_fwhm_to_sigma

Convert a string or number to a floating point number, if possible.

gaussian_sigma_to_fwhm

Convert a string or number to a floating point number, if possible.

histogram_intervals

Histogram of a piecewise-constant weight function.

interval_overlap_length

Compute the length of overlap of two intervals.

kuiper

Compute the Kuiper statistic.

kuiper_false_positive_probability

Compute the false positive probability for the Kuiper statistic.

kuiper_two

Compute the Kuiper statistic to compare two samples.

mad_std

Calculate a robust standard deviation using the median absolute deviation (MAD).

median_absolute_deviation

Calculate the median absolute deviation (MAD).

poisson_conf_interval

Poisson parameter confidence interval given observed counts.

signal_to_noise_oir_ccd

Computes the signal to noise ratio for source being observed in the

calculate_bin_edges

Calculate histogram bin edges like numpy.histogram_bin_edges.

freedman_bin_width

Return the optimal histogram bin width using the Freedman-Diaconis rule.

histogram

Enhanced histogram function, providing adaptive binnings.

knuth_bin_width

Return the optimal histogram bin width using Knuth’s rule.

scott_bin_width

Return the optimal histogram bin width using Scott’s rule.

akaike_info_criterion

Computes the Akaike Information Criterion (AIC).

akaike_info_criterion_lsq

Computes the Akaike Information Criterion assuming that the observations

bayesian_info_criterion

Computes the Bayesian Information Criterion (BIC) given the log of the

bayesian_info_criterion_lsq

Computes the Bayesian Information Criterion (BIC) assuming that the

tweedie_gen

A Tweedie continuous random variable inherited scipy.stats.rv_continuous.

tweedie

An instance of tweedie_gen, providing Tweedie distribution functionality.

Timer

Lightweight ⏱ timing context manager with logger support.

PathNamer

Generate portable, collision-resistant filenames and paths.

make_path

Make Convenience wrapper to build a unique path (callable with zero args).

graph_view

Generates an architectural visualization for a given linear Keras

layered_view

Generates an architectural visualization for a given linear Keras

SpacingDummyLayer

A factory class for dynamically generating a dummy Keras layer with custom spacing.

_factory_api

Scikit-plots Factory API module.

plot_roc_curve

Generates the ROC curves from labels and predicted scores/probabilities

plot_precision_recall_curve

Generates the Precision Recall Curve from labels and probabilities