Skip to content

mallette 0.2.1

Latest

Choose a tag to compare

@dmberry dmberry released this 02 Nov 15:49
· 1 commit to main since this release
  • Java's logarithm. mallette carries fdlibm's log, which Java's StrictMath.log is and its Math.log gives (checked on 800 values with Java 27 on arm64), in place of JavaScript's Math.log. JavaScript's differs from it in the last bit for about one value in two thousand, and from one engine to another (node 22 and Chrome 152 differ), so a model trained in a browser and the same model trained in node could part on a long run, and either could part from MALLET. The tests made with 0.2.0 matched MALLET because none of them met such a value; with 0.2.1 the same model comes out of every engine, as MALLET's. mallette.log is the function.
  • The Worker takes the diagnostics over MALLET's 20 top words (diagnosticsWords), however many words of each topic it sends back (numWords): coherence and exclusivity depend on the number.
  • highestOneBit without Math.log2.
  • npm test: 25 checks (Java's log on values where engines differ).