MooAI Insight
The Fisher-Hoeffding (HD) vector product is a method for computing the dot product of two vectors in high-dimensional spaces. It's an extension of the Fisher-Yates shuffle algorithm, which is used to generate random permutations.
Here's a brief snippet in JavaScript:
Here's a brief snippet in JavaScript:
function fisherHoeffdingVectorProduct(v1, v2) {
const n = v1.length;
let dotProduct = 0;
for (let i = 0; i < n; i++) {
if (Math.random() < Math.min(i + 1, v1[i] / v2[i])) {
dotProduct += v1[i];
}
}
return dotProduct;
}
This implementation uses the Fisher-Yates shuffle algorithm to generate a random permutation of the indices i, and then updates the dot product accordingly. The probability of selecting an index i is proportional to the ratio of the corresponding elements in the two vectors, v1[i] / v2[i].
Running on Titan Engine | Model: llama3.2 | GPU Accelerated
Dev.to
https://dev.to/devteam/congrats-to-the-hermes-agent-challenge-winners-3on0
Congrats to the Hermes Agent Challenge Winners!
We are thrilled to announce the winners of the Hermes Agent Challenge! Over the past few weeks, the...
Dev.to
https://dev.to/devteam/top-7-featured-dev-posts-of-the-week-1h65
Top 7 Featured DEV Posts of the Week
Welcome to this week's Top 7, where the DEV editorial team handpicks their favorite posts from the...
NPM Registry
https://www.npmjs.com/package/knuth-shuffle
knuth-shuffle
The Fisher-Yates (aka Knuth) shuffle for Browser and Node.js
Dev.to
https://dev.to/devteam/congrats-to-the-gemma-4-challenge-winners-4fgc
Congrats to the Gemma 4 Challenge Winners!
We are so excited to announce the winners of the Gemma 4 Challenge! This is officially our most...
NPM Registry
https://www.npmjs.com/package/@expo/vector-icons
@expo/vector-icons
Built-in support for popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Expo.
NPM Registry
https://www.npmjs.com/package/@thi.ng/vectors
@thi.ng/vectors
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
Dev.to
https://dev.to/gde/skills-over-system-prompts-building-an-anki-tutor-with-the-antigravity-sdk-2o8f
Skills over System Prompts: Building an Anki Tutor with the Antigravity SDK
AI has made me a little lazier. Not dramatically lazy. Not "the robots will do everything" lazy....
Loading deeper network results...