Release Notes
November 9, 2024 ยท View on GitHub
-
0.7.4 Fix the problem that
sample_FP_pairandsample_FP_pair_deterministicmay create FP pairs on NN. -
0.7.3
Fix the problem when the sample size is smaller than the number of neighbors, PaCMAP will crash without proper error report. Now the PaCMAP will reduce the number of neighbors and generate a warning message.
-
0.7.2
Fix the problem in using user-provided initialization, as well as discrepancy between documentation and code in default
n_neighborsparameter. -
0.7.1
Update the required
numbaversion tonumba >= 0.57. -
0.7.0
Now officially supports the
saveandloadmethods.pacmap.save(reducer, common_prefix)will save the PaCMAP instance (and the AnnoyIndex ifsave_tree=True) to the location specified by thecommon_prefix. The PaCMAP instance will be named as{common_prefix}.pkland the Annoy Index will be named as{common_prefix}.ann. Similarly,pacmap.load(common_prefix)loads the saved PaCMAP instance. -
0.6.0
Now officially supports the
transformfeature. The transform operation is useful for projecting a new dataset into an existing embedded space. In the current version of implementation, thetransformmethod will treat the input as an additional dataset, which means the same point could be mapped into a different place. -
0.5.0
Now support setting
random_statewhen creatingpacmap.PaCMAPinstances for better reproducibility.Fix the default initialization to
PCAto resolve inconsistency between code and description.Setting the
random_statewill affect the numpy random seed in your local environment. However, you may still get different results even if therandom_stateparameter is set to be the same. This is because numba parallelization makes some of the functions undeterministic. That being said, fixing the random state will always give you the same set of pairs and initialization, which ensure the difference is minimal. -
0.4.1
Now the default value for
n_neighborsis 10. To enable automatic parameter selection, please set it toNone. -
0.4
Now supports user-specified nearest neighbor pairs. See section
How to use user-specified nearest neighborbelow.The
fitfunction and thefit_transformfunction now has an extra parametersave_pairsthat decides whether the pairs sampled in this run will be saved to save time for reproducing experiments with other hyperparameters (default toTrue). -
0.3
Now supports user-specified matrix as initialization through
initparameter. The matrix must be an numpy ndarray with the shape (N, 2). -
0.2
Adding adaptive default value for
n_neighbors: for large datasets with sample size N > 10000, the default value will be set to 10 + 15 * (log10(N) - 4), rounding to the nearest integer. -
0.1
Initial Release