tessl install tessl/pypi-scikit-learn@1.7.0A comprehensive machine learning library providing supervised and unsupervised learning algorithms with consistent APIs and extensive tools for data preprocessing, model evaluation, and deployment.
Agent Success
Agent success rate when using this tile
87%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
88%
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.