API Reference / sklearn /

neighbors.py

scikit-learn neighbors wrappers.

Generated from the NEIGHBORS table in specs. Registered under sklearn. hub keys, mirroring the native TuiML neighbors family.

Classes

KNeighborsClassifier

class sklearn.neighbors.KNeighborsClassifier(_SklearnBackedMixin, Classifier)

scikit-learn KNeighborsClassifier (hub key sklearn.KNeighborsClassifier).

Wraps KNeighborsClassifier. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.

Commonly set: n_neighbors, weights, metric.

Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

NearestCentroid

class sklearn.neighbors.NearestCentroid(_SklearnBackedMixin, Classifier)

scikit-learn NearestCentroid (hub key sklearn.NearestCentroid).

Wraps NearestCentroid. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

RadiusNeighborsClassifier

class sklearn.neighbors.RadiusNeighborsClassifier(_SklearnBackedMixin, Classifier)

scikit-learn RadiusNeighborsClassifier (hub key sklearn.RadiusNeighborsClassifier).

Wraps RadiusNeighborsClassifier. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

KNeighborsRegressor

class sklearn.neighbors.KNeighborsRegressor(_SklearnBackedMixin, Regressor)

scikit-learn KNeighborsRegressor (hub key sklearn.KNeighborsRegressor).

Wraps KNeighborsRegressor. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.

Commonly set: n_neighbors, weights, metric.

Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

RadiusNeighborsRegressor

class sklearn.neighbors.RadiusNeighborsRegressor(_SklearnBackedMixin, Regressor)

scikit-learn RadiusNeighborsRegressor (hub key sklearn.RadiusNeighborsRegressor).

Wraps RadiusNeighborsRegressor. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

KNeighborsTransformer

class sklearn.neighbors.KNeighborsTransformer(_SklearnTransformerMixin, Transformer)

scikit-learn KNeighborsTransformer (hub key sklearn.KNeighborsTransformer).

Wraps KNeighborsTransformer. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

NeighborhoodComponentsAnalysis

class sklearn.neighbors.NeighborhoodComponentsAnalysis(_SklearnTransformerMixin, Transformer)

scikit-learn NeighborhoodComponentsAnalysis (hub key sklearn.NeighborhoodComponentsAnalysis).

Wraps NeighborhoodComponentsAnalysis. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

RadiusNeighborsTransformer

class sklearn.neighbors.RadiusNeighborsTransformer(_SklearnTransformerMixin, Transformer)

scikit-learn RadiusNeighborsTransformer (hub key sklearn.RadiusNeighborsTransformer).

Wraps RadiusNeighborsTransformer. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.