From 2da39bfbad24fa206fdde1d90b42423e81551869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andri=20=C3=93skarsson?= Date: Sat, 11 Jan 2025 16:12:05 +0100 Subject: [PATCH] dont be afraid to score something zero --- packages/atproto/classifiers/tfjs/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/atproto/classifiers/tfjs/index.ts b/packages/atproto/classifiers/tfjs/index.ts index 3daa910..e5dd9ba 100644 --- a/packages/atproto/classifiers/tfjs/index.ts +++ b/packages/atproto/classifiers/tfjs/index.ts @@ -51,7 +51,7 @@ export const createBayesClassiferFn: FnType = async (ctx) => { wordIndex: m.wordIndex, }); return { - score: cl?.score ?? null, + score: cl?.score !== undefined ? cl.score : null, tag: "tech", }; }; -- 2.51.2