A comprehensive machine learning library providing supervised and unsupervised learning algorithms with consistent APIs and extensive tools for data preprocessing, model evaluation, and deployment.
87
Design a small workflow that projects high-dimensional numeric samples into a lower-dimensional space, clusters them with soft assignments, and produces a reproducible 2D layout for visualization.
random_state for any stochastic steps, exposes the chosen cluster count after fitting, and returns self. @test(n_samples,) for labels and probabilities. @test(n_samples, 2). @testValueError when the smallest requested cluster count exceeds the number of samples or when non-finite values are present in the training data. @test@generates
import numpy as np
from typing import Sequence, Tuple
class ClusterWorkflow:
def __init__(self, cluster_counts: Sequence[int], random_state: int | None = None): ...
@property
def selected_cluster_count(self) -> int: ...
def fit(self, samples: np.ndarray) -> "ClusterWorkflow": ...
def predict(self, samples: np.ndarray) -> Tuple[np.ndarray, np.ndarray]: ...
def embedding_2d(self) -> np.ndarray: ...Provides preprocessing, dimensionality reduction, mixture modelling, and manifold embedding utilities.
Install with Tessl CLI
npx tessl i tessl/pypi-scikit-learndocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10