Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "umap-js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JavaScript implementation of UMAP", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -16,2 +16,8 @@ # UMAP-JS | ||
#### Installation | ||
```sh | ||
yarn add umap-js | ||
``` | ||
#### Synchronous fitting | ||
@@ -50,3 +56,3 @@ | ||
The UMAP constructor can accept a number of parameters: | ||
The UMAP constructor can accept a number of parameters via a `UMAPParameters` object: | ||
@@ -60,2 +66,10 @@ | Parameter | Description | default | | ||
```typescript | ||
const umap = new UMAP({ | ||
nComponents: 2, | ||
nEpochs: 400, | ||
nNeighbors: 15, | ||
}); | ||
``` | ||
### Testing | ||
@@ -62,0 +76,0 @@ |
@@ -1,1 +0,1 @@ | ||
export { UMAP } from './umap'; | ||
export { UMAP, UMAPParameters } from './umap'; |
305299
81