Skip to content

Commit 7c78c4c

Browse files
authored
Merge pull request #26 from kevinrobinson/kevinrobinson-patch-1
Update `fitAsync` example in README to describe callback
2 parents b94d23c + 6c0080f commit 7c78c4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ const embedding = umap.fit(data);
3434
import { UMAP } from 'umap-js';
3535

3636
const umap = new UMAP();
37-
const embedding = await umap.fitAsync(data, callback);
37+
const embedding = await umap.fitAsync(data, epochNumber => {
38+
// check progress and give user feedback, or return `false` to stop
39+
});
3840
```
3941

4042
#### Step-by-step fitting

0 commit comments

Comments
 (0)