You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { tSNE } from "wasm-bhtsne";
function createRandomMatrix(rows, columns) {
return Array.from({ length: rows }, () =>
Array.from({ length: columns }, () => Math.random())
);
}
// create random points and dimensions
const data = createRandomMatrix(5000, 512);
const tsne_encoder = new tSNE(data);
let compressed_vectors = []
for (let i = 0; i < 1000; i++) {
// as argument the number of epochs,
compressed_vectors = tsne_encoder.barnes_hut(1);
}
console.log("Compressed Vectors:", compressed_vectors);
https://github.com/Lv-291/wasm-bhtsne
The text was updated successfully, but these errors were encountered: