Comments (4)
Hey,
the documentation for FASTMAP is here: https://saehm.github.io/DruidJS/FASTMAP.html
I hope this helps!
from druidjs.
I checked your notebook, and the druid code.
For me, the notebook works for the iterative methods with this:
result = Generators.observe(
worker(
function dr({ dr_method, data }) {
return druid[dr_method].generator(data, {});
},
{ dr_method, data },
`
importScripts(${JSON.stringify(
await require.resolve("@saehrimnir/druidjs@^0.7.1") // note: version 0.7 changes the API, breaking FASTMAP to PCA in this notebook. See https://observablehq.com/@saehrimnir/hello-druidjs/2
)});
`
)
)
The generator function just calls the transform function and returns its results, maybe i need to use yield
instead?
All the methods work for me with the transform function return druid[dr_method].transform(data, {});
.
The second parameter {}
is (as a workaround) needed for the DR methods which have a neighbors parameter.
from druidjs.
I fixed the issue of the methods which need a neighbor parameter.
I already added the generator function for all DR methods when you were talking about this here: #13 (comment).
But they did not work yet. With version 0.7.3, your notebook works for all DR techniques with your code, but also with this code:
result = Generators.observe(
worker(
function dr({ dr_method, data }) {
return druid[dr_method].generator(data); // show the steps
},
{ dr_method, data },
`
importScripts(${JSON.stringify(
await require.resolve("@saehrimnir/druidjs@^0.7.3")
)});
`
)
)
from druidjs.
I see. So we need one of:
yield druid[dr_method].transform(data, {}); yield* druid[dr_method].generator(data, {});
How can I distinguish the methods that have a working generator? (I think it's the same question as #13 (comment) :) )
from druidjs.
Related Issues (20)
- FASTMAP(d=3) returns same value in columns 0 and 2. HOT 2
- learn then transform? HOT 1
- Kohonen SOM?
- API design HOT 5
- Sammon Mapping? HOT 2
- Link to Observable examples from README HOT 4
- Link to Conference Talk in README HOT 2
- Scaling up? HOT 1
- Experimental JavaScript features cause problems with babel or create-react-app HOT 1
- The docs should state which type of MDS is implemented HOT 1
- UMAP metrics? HOT 3
- Could not find a declaration file for module '@saehrimnir/druidjs' / module has no exports error HOT 2
- efficient SVD implementation
- License?
- Add types
- FASTMAP and UMAP .transform are not reentrant
- Some methods like UMAP crash when *n* <= 10 HOT 1
- static properties are TC39 HOT 3
- Topomap? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from druidjs.