tlc.client.reduce.pacmap¶
Dimensionality reduction with the PaCMAP algorithm.
Module Contents¶
Classes¶
Class |
Description |
|---|---|
Perform dimensionality reduction on columns of tables using the PaCMAP algorithm. |
|
Arguments specific to the PaCMAP reduction method. |
API¶
- class PaCMAPReduction(
- reducer_args: tlc.client.reduce.reduction_method._ReducerArgsType | None = None,
Bases:
tlc.client.reduce.reduction_method.ReductionMethod[tlc.client.reduce.pacmap.PaCMAPTableArgs]Perform dimensionality reduction on columns of tables using the PaCMAP algorithm.
- Params reducer_args:
A dictionary of arguments which are specific to the reduction method.
- default_args() PaCMAPTableArgs¶
Returns the default arguments for the PaCMAP reduction method.
- class PaCMAPTableArgs¶
Bases:
tlc.client.reduce.reduction_method.ReducerArgsArguments specific to the PaCMAP reduction method.
See
PaCMAPTablefor more information.Initialize self. See help(type(self)) for accurate signature.
- FP_ratio: float = None¶
the ratio of the number of further pairs to the number of neighbors, (default 2)
- MN_ratio: float = None¶
the ratio of the number of mid-near pairs to the number of neighbors (default 0.5)
- apply_pca: bool = None¶
Whether pacmap should apply PCA to the data before constructing the k-Nearest Neighbor graph (default True)
- distance: str = None¶
The distance metric to use for the nearest neighbor graph (default ‘euclidean’)
- n_neighbors: int = None¶
The number of neighbors to use when constructing the nearest neighbor graph (default to 10 for dataset whose sample size is smaller than 10000. For large dataset whose sample size (n) is larger than 10000, the default value is: 10 + 15 * (log10(n) - 4))