Skip to main content
Ctrl+K

mojolearn

  • Install
  • User guide
  • API reference
  • Notes
  • Community
    • Get started
    • Measurements
  • GitHub
  • PyPI
  • Install
  • User guide
  • API reference
  • Notes
  • Community
  • Get started
  • Measurements
  • GitHub
  • PyPI

Section Navigation

  • Runtime and numeric modes
    • mojolearn.Array
    • mojolearn.gpu_arch
    • mojolearn.gpu_arch_how
    • mojolearn.numeric_mode
    • mojolearn.numeric_profile
    • mojolearn.numeric_profile_measured
    • mojolearn.numeric_profiles
    • mojolearn.set_numeric_mode
    • mojolearn.set_numeric_profile
    • mojolearn.vendor
  • Gradient boosting
    • mojolearn.GradientBoosting
    • mojolearn.GradientBoostingClassifier
    • mojolearn.GradientBoostingRegressor
  • Forests and trees
    • mojolearn.AdaBoostClassifier
    • mojolearn.AdaBoostRegressor
    • mojolearn.BaggingClassifier
    • mojolearn.BaggingRegressor
    • mojolearn.CalibratedClassifierCV
    • mojolearn.DARTClassifier
    • mojolearn.DARTRegressor
    • mojolearn.DecisionTreeClassifier
    • mojolearn.DecisionTreeRegressor
    • mojolearn.ExtraTreesClassifier
    • mojolearn.ExtraTreesRegressor
    • mojolearn.host_model
    • mojolearn.host_predict
    • mojolearn.host_predict_proba
    • mojolearn.HostForest
    • mojolearn.HostGBDT
    • mojolearn.IsolationForest
    • mojolearn.KernelExplainer
    • mojolearn.MultiOutputClassifier
    • mojolearn.MultiOutputRegressor
    • mojolearn.OneVsRestClassifier
    • mojolearn.PermutationExplainer
    • mojolearn.RandomForestClassifier
    • mojolearn.RandomForestRegressor
    • mojolearn.RandomTreesEmbedding
    • mojolearn.StackingClassifier
    • mojolearn.StackingRegressor
    • mojolearn.TreeExplainer
    • mojolearn.VotingClassifier
    • mojolearn.VotingRegressor
  • Linear models
    • mojolearn.ARDRegression
    • mojolearn.BayesianRidge
    • mojolearn.ElasticNet
    • mojolearn.ElasticNetCV
    • mojolearn.GammaRegressor
    • mojolearn.HuberRegressor
    • mojolearn.IsotonicRegression
    • mojolearn.Lars
    • mojolearn.Lasso
    • mojolearn.LassoCV
    • mojolearn.LassoLars
    • mojolearn.LinearRegression
    • mojolearn.LogisticRegression
    • mojolearn.LogisticRegressionCV
    • mojolearn.PassiveAggressiveClassifier
    • mojolearn.PassiveAggressiveRegressor
    • mojolearn.Perceptron
    • mojolearn.PoissonRegressor
    • mojolearn.QNRegressor
    • mojolearn.QuantileRegressor
    • mojolearn.Ridge
    • mojolearn.RidgeClassifier
    • mojolearn.RidgeCV
    • mojolearn.SGDClassifier
    • mojolearn.SGDOneClassSVM
    • mojolearn.SGDRegressor
    • mojolearn.TweedieRegressor
  • Support vector machines and kernel methods
    • mojolearn.kernel_methods
    • mojolearn.KernelRidge
    • mojolearn.LinearSVC
    • mojolearn.LinearSVR
    • mojolearn.Nystroem
    • mojolearn.RBFSampler
    • mojolearn.SVC
    • mojolearn.svm
    • mojolearn.SVR
  • Gaussian processes
    • mojolearn.ConstantKernel
    • mojolearn.GaussianProcessClassifier
    • mojolearn.GaussianProcessRegressor
    • mojolearn.Matern
    • mojolearn.RBF
    • mojolearn.WhiteKernel
  • Neighbors and vector search
    • mojolearn.AdditiveChi2Sampler
    • mojolearn.CagraIndex
    • mojolearn.connected_components
    • mojolearn.IVFIndex
    • mojolearn.IVFPQIndex
    • mojolearn.IVFRaBitQIndex
    • mojolearn.IVFSQIndex
    • mojolearn.KernelPCA
    • mojolearn.KNeighborsClassifier
    • mojolearn.KNeighborsRegressor
    • mojolearn.KNNImputer
    • mojolearn.LabelPropagation
    • mojolearn.LabelSpreading
    • mojolearn.LocalOutlierFactor
    • mojolearn.Louvain
    • mojolearn.NearestCentroid
    • mojolearn.NearestNeighbors
    • mojolearn.OneClassSVM
    • mojolearn.PageRank
    • mojolearn.PolynomialCountSketch
    • mojolearn.RadiusNeighbors
    • mojolearn.refine
    • mojolearn.SkewedChi2Sampler
    • mojolearn.SVGP
    • mojolearn.TSNE
  • Clustering and mixture models
    • mojolearn.AffinityPropagation
    • mojolearn.AgglomerativeClustering
    • mojolearn.BayesianGaussianMixture
    • mojolearn.BisectingKMeans
    • mojolearn.DBSCAN
    • mojolearn.GaussianMixture
    • mojolearn.HDBSCAN
    • mojolearn.hdbscan
    • mojolearn.KMeans
    • mojolearn.MeanShift
    • mojolearn.MiniBatchKMeans
    • mojolearn.mixture
    • mojolearn.OPTICS
    • mojolearn.SpectralClustering
    • mojolearn.SpectralEmbedding
  • Decomposition and manifold learning
    • mojolearn.AlternatingLeastSquares
    • mojolearn.CCA
    • mojolearn.ClassicalMDS
    • mojolearn.DictionaryLearning
    • mojolearn.EllipticEnvelope
    • mojolearn.FactorAnalysis
    • mojolearn.FastICA
    • mojolearn.GaussianRandomProjection
    • mojolearn.IncrementalPCA
    • mojolearn.Isomap
    • mojolearn.johnson_lindenstrauss_min_dim
    • mojolearn.LatentDirichletAllocation
    • mojolearn.LocallyLinearEmbedding
    • mojolearn.lstsq
    • mojolearn.lu_factor
    • mojolearn.lu_solve
    • mojolearn.manifold
    • mojolearn.MDS
    • mojolearn.MinCovDet
    • mojolearn.MiniBatchDictionaryLearning
    • mojolearn.MiniBatchSparsePCA
    • mojolearn.NMF
    • mojolearn.PCA
    • mojolearn.PLSCanonical
    • mojolearn.PLSRegression
    • mojolearn.randomized_svd
    • mojolearn.solve
    • mojolearn.sparse_encode
    • mojolearn.SparseCoder
    • mojolearn.SparsePCA
    • mojolearn.SparseRandomProjection
    • mojolearn.TruncatedSVD
    • mojolearn.UMAP
    • mojolearn.umap
  • Preprocessing
    • mojolearn.BernoulliNB
    • mojolearn.Binarizer
    • mojolearn.CategoricalNB
    • mojolearn.chi2
    • mojolearn.ComplementNB
    • mojolearn.f_classif
    • mojolearn.f_regression
    • mojolearn.GaussianNB
    • mojolearn.IterativeImputer
    • mojolearn.KBinsDiscretizer
    • mojolearn.LabelBinarizer
    • mojolearn.LabelEncoder
    • mojolearn.LinearDiscriminantAnalysis
    • mojolearn.MaxAbsScaler
    • mojolearn.MinMaxScaler
    • mojolearn.MultiLabelBinarizer
    • mojolearn.MultinomialNB
    • mojolearn.mutual_info_classif
    • mojolearn.mutual_info_regression
    • mojolearn.Normalizer
    • mojolearn.OneHotEncoder
    • mojolearn.OrdinalEncoder
    • mojolearn.PolynomialFeatures
    • mojolearn.PowerTransformer
    • mojolearn.preprocessing
    • mojolearn.QuadraticDiscriminantAnalysis
    • mojolearn.QuantileTransformer
    • mojolearn.r_regression
    • mojolearn.RFE
    • mojolearn.RobustScaler
    • mojolearn.SelectKBest
    • mojolearn.SimpleImputer
    • mojolearn.SplineTransformer
    • mojolearn.StandardScaler
    • mojolearn.TargetEncoder
    • mojolearn.VarianceThreshold
  • Density estimation
    • mojolearn.KernelDensity
  • Time series
    • mojolearn.ARIMA
    • mojolearn.AutoARIMA
    • mojolearn.AutoTheta
    • mojolearn.CrostonClassic
    • mojolearn.CrostonOptimized
    • mojolearn.CrostonSBA
    • mojolearn.DampedETS
    • mojolearn.DynamicOptimizedTheta
    • mojolearn.DynamicTheta
    • mojolearn.ETS
    • mojolearn.ExponentialSmoothing
    • mojolearn.GARCH
    • mojolearn.kpss_test
    • mojolearn.OptimizedTheta
    • mojolearn.ProphetForecaster
    • mojolearn.select_d
    • mojolearn.STL
    • mojolearn.Theta
    • mojolearn.VAR
  • Neural networks
    • mojolearn.Adagrad
    • mojolearn.Adam
    • mojolearn.Adamax
    • mojolearn.AdamW
    • mojolearn.clip_grad_norm_
    • mojolearn.cross_entropy
    • mojolearn.Embedding
    • mojolearn.embedding
    • mojolearn.ExponentialLR
    • mojolearn.GRUClassifier
    • mojolearn.GRURegressor
    • mojolearn.layer_norm_backward
    • mojolearn.layer_norm_forward
    • mojolearn.LayerNorm
    • mojolearn.Lion
    • mojolearn.LSTMClassifier
    • mojolearn.LSTMRegressor
    • mojolearn.mamba
    • mojolearn.Mamba1Block
    • mojolearn.Mamba1BlockInference
    • mojolearn.Mamba1State
    • mojolearn.Mamba2Block
    • mojolearn.Mamba2BlockInference
    • mojolearn.Mamba2State
    • mojolearn.Mamba3Block
    • mojolearn.Mamba3BlockInference
    • mojolearn.Mamba3State
    • mojolearn.MLPClassifier
    • mojolearn.MLPInference
    • mojolearn.MLPRegressor
    • mojolearn.MoEBlock
    • mojolearn.NAdam
    • mojolearn.neural_network
    • mojolearn.OneCycleLR
    • mojolearn.RMSprop
    • mojolearn.RNNClassifier
    • mojolearn.RNNRegressor
    • mojolearn.SambaConfig
    • mojolearn.SambaInference
    • mojolearn.SambaStack
    • mojolearn.SGD
    • mojolearn.SmallMLPTrainer
    • mojolearn.StepLR
    • mojolearn.training
    • mojolearn.transformer
    • mojolearn.TransformerBlock
    • mojolearn.TransformerBlockInference
    • mojolearn.TransformerState
  • Language models and tokenizers
    • mojolearn.BpeTokenizer
    • mojolearn.ByteLanguageModelConfig
    • mojolearn.GPT2Tokenizer
    • mojolearn.language_model
    • mojolearn.LanguageModelConfig
    • mojolearn.LanguageModelInference
    • mojolearn.LanguageModelTrainer
    • mojolearn.lm_corpus
    • mojolearn.models
    • mojolearn.SmallByteLanguageModelTrainer
    • mojolearn.tokenizer
  • Metrics, model selection and resampling
    • mojolearn.cross_val_score
    • mojolearn.metrics
    • mojolearn.model_selection
    • mojolearn.resample
  • Linear algebra
    • mojolearn.Cholesky
    • mojolearn.linalg
    • mojolearn.lowbit
    • mojolearn.matmul
  • API reference
  • Neighbors and vector search

Neighbors and vector search#

Exact neighbors, IVF, CAGRA and quantized indexes for vector search.

AdditiveChi2Sampler

Approximate feature map for the additive chi-squared kernel.

CagraIndex

Graph-based approximate nearest-neighbor index (CAGRA).

connected_components

Connected components of a graph.

IVFIndex

Approximate nearest-neighbor index with inverted lists (IVF-Flat).

IVFPQIndex

Approximate nearest-neighbor index with inverted lists and product quantization (IVF-PQ).

IVFRaBitQIndex

Approximate nearest-neighbor index with inverted lists and 1-bit RaBitQ codes (IVF-RaBitQ).

IVFSQIndex

Approximate nearest-neighbor index with inverted lists and 8-bit scalar quantization (IVF-SQ).

KernelPCA

Kernel principal component analysis.

KNeighborsClassifier

Classifier that votes among the k nearest training points.

KNeighborsRegressor

Regressor that averages the targets of the k nearest training points.

KNNImputer

Imputation of missing values by k nearest neighbors.

LabelPropagation

Semi-supervised classification by label propagation.

LabelSpreading

Semi-supervised classification by label spreading.

LocalOutlierFactor

Unsupervised outlier detection by the local outlier factor (LOF).

Louvain

Louvain community detection on an undirected weighted graph.

NearestCentroid

Nearest centroid classifier.

NearestNeighbors

Exact k-nearest-neighbor search.

OneClassSVM

Unsupervised outlier detection with the nu one-class SVM.

PageRank

PageRank scores of a directed graph by power iteration.

PolynomialCountSketch

Polynomial kernel approximation by tensor sketch.

RadiusNeighbors

Find every fitted point within a radius of each query.

refine

Re-rank candidate neighbors by exact distance.

SkewedChi2Sampler

Approximate feature map for the skewed chi-squared kernel.

SVGP

Sparse variational Gaussian process regression with inducing points.

TSNE

t-distributed Stochastic Neighbor Embedding (t-SNE) into two dimensions.

previous

mojolearn.WhiteKernel

next

mojolearn.AdditiveChi2Sampler

© Copyright 2026, Andrew Hendel.

Created using Sphinx 9.1.0.