Locally Linear Embedding.
Read more in the User Guide.
new LocallyLinearEmbedding(opts?: object): LocallyLinearEmbedding;
Name | Type | Description |
---|---|---|
opts? |
object |
- |
opts.eigen_solver? |
"auto" | "arpack" | "dense" |
The solver used to compute the eigenvectors. The available options are: Default Value 'auto' |
opts.hessian_tol? |
number |
Tolerance for Hessian eigenmapping method. Only used if method \== 'hessian' . Default Value 0.0001 |
opts.max_iter? |
number |
Maximum number of iterations for the arpack solver. Not used if eigen_solver==’dense’. Default Value 100 |
opts.method? |
"standard" | "hessian" | "modified" | "ltsa" |
standard : use the standard locally linear embedding algorithm. see reference [1] Default Value 'standard' |
opts.modified_tol? |
number |
Tolerance for modified LLE method. Only used if method \== 'modified' . Default Value 1e-12 |
opts.n_components? |
number |
Number of coordinates for the manifold. Default Value 2 |
opts.n_jobs? |
number |
The number of parallel jobs to run. undefined means 1 unless in a joblib.parallel\_backend context. \-1 means using all processors. See Glossary for more details. |
opts.n_neighbors? |
number |
Number of neighbors to consider for each point. Default Value 5 |
opts.neighbors_algorithm? |
"auto" | "ball_tree" | "kd_tree" | "brute" |
Algorithm to use for nearest neighbors search, passed to NearestNeighbors instance. Default Value 'auto' |
opts.random_state? |
number |
Determines the random number generator when eigen\_solver == ‘arpack’. Pass an int for reproducible results across multiple function calls. See Glossary. |
opts.reg? |
number |
Regularization constant, multiplies the trace of the local covariance matrix of the distances. Default Value 0.001 |
opts.tol? |
number |
Tolerance for ‘arpack’ method Not used if eigen_solver==’dense’. Default Value 0.000001 |
Defined in: generated/manifold/LocallyLinearEmbedding.ts:23
Disposes of the underlying Python resources.
Once dispose()
is called, the instance is no longer usable.
dispose(): Promise<void>;
Promise
<void
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:179
Compute the embedding vectors for data X.
fit(opts: object): Promise<any>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.X? |
ArrayLike [] |
Training set. |
opts.y? |
any |
Not used, present here for API consistency by convention. |
Promise
<any
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:196
Compute the embedding vectors for data X and transform X.
fit_transform(opts: object): Promise<ArrayLike>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.X? |
ArrayLike [] |
Training set. |
opts.y? |
any |
Not used, present here for API consistency by convention. |
Promise
<ArrayLike
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:236
Get output feature names for transformation.
The feature names out will prefixed by the lowercased class name. For example, if the transformer outputs 3 features, then the feature names out are: \["class\_name0", "class\_name1", "class\_name2"\]
.
get_feature_names_out(opts: object): Promise<any>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.input_features? |
any |
Only used to validate feature names with the names seen in fit . |
Promise
<any
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:281
Get metadata routing of this object.
Please check User Guide on how the routing mechanism works.
get_metadata_routing(opts: object): Promise<any>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.routing? |
any |
A MetadataRequest encapsulating routing information. |
Promise
<any
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:321
Initializes the underlying Python resources.
This instance is not usable until the Promise
returned by init()
resolves.
init(py: PythonBridge): Promise<void>;
Name | Type |
---|---|
py |
PythonBridge |
Promise
<void
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:121
Set output container.
See Introducing the set_output API for an example on how to use the API.
set_output(opts: object): Promise<any>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.transform? |
"default" | "pandas" |
Configure output of transform and fit\_transform . |
Promise
<any
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:361
Transform new points into embedding space.
transform(opts: object): Promise<ArrayLike[]>;
Name | Type | Description |
---|---|---|
opts |
object |
- |
opts.X? |
ArrayLike [] |
Training set. |
Promise
<ArrayLike
[]>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:398
boolean
=false
Defined in: generated/manifold/LocallyLinearEmbedding.ts:21
boolean
=false
Defined in: generated/manifold/LocallyLinearEmbedding.ts:20
PythonBridge
Defined in: generated/manifold/LocallyLinearEmbedding.ts:19
string
Defined in: generated/manifold/LocallyLinearEmbedding.ts:16
any
Defined in: generated/manifold/LocallyLinearEmbedding.ts:17
Stores the embedding vectors
embedding_(): Promise<ArrayLike>;
Promise
<ArrayLike
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:435
Names of features seen during fit. Defined only when X
has feature names that are all strings.
feature_names_in_(): Promise<ArrayLike>;
Promise
<ArrayLike
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:516
Number of features seen during fit.
n_features_in_(): Promise<number>;
Promise
<number
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:489
Stores nearest neighbors instance, including BallTree or KDtree if applicable.
nbrs_(): Promise<any>;
Promise
<any
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:543
py(): PythonBridge;
PythonBridge
Defined in: generated/manifold/LocallyLinearEmbedding.ts:108
py(pythonBridge: PythonBridge): void;
Name | Type |
---|---|
pythonBridge |
PythonBridge |
void
Defined in: generated/manifold/LocallyLinearEmbedding.ts:112
Reconstruction error associated with embedding\_
reconstruction_error_(): Promise<number>;
Promise
<number
>
Defined in: generated/manifold/LocallyLinearEmbedding.ts:462