Testosterone and sensitivity. master
authorScott Gasch <[email protected]>
Mon, 29 Apr 2024 21:12:45 +0000 (14:12 -0700)
committerScott Gasch <[email protected]>
Mon, 29 Apr 2024 21:12:45 +0000 (14:12 -0700)
bellevue_reporter_rss_renderer.py
kiosk.py

index fec70e00d83cb62022f526c90515e35ad8b44165..862e17136956d98a2121c9728cdc76434b79745d 100644 (file)
@@ -64,6 +64,7 @@ class bellevue_reporter_rss_renderer(gnrss.generic_news_rss_renderer):
                 "marketplace" in description
                 or "national-marketplace" in description
                 or re.search("[Ww]eed", title) is not None
+                or re.search("[Tt]estosterone", title) is not None
                 or re.search("[Cc]annabis", title) is not None
                 or re.search("[Cc]annabis", description) is not None
                 or "THC" in title
index 14dae5721adbf8c5da5a0ece5af965de095deaa8..fe9e174262537b5267541d52483a8f3d746152ab 100755 (executable)
--- a/kiosk.py
+++ b/kiosk.py
@@ -725,7 +725,13 @@ def main() -> None:
                         "The hotword detector thread seems to have died; restarting it and hoping for the best."
                     )
                 keyword_paths = [pvporcupine.KEYWORD_PATHS[x] for x in ["bumblebee"]]
-                sensitivities = [0.7] * len(keyword_paths)
+
+                # Sensitivity is the parameter that enables trading
+                # miss rate for the false alarm rate. It is a floating
+                # point number within [0, 1]. A higher sensitivity
+                # reduces the miss rate at the cost of increased false
+                # alarm rate.
+                sensitivities = [0.4] * len(keyword_paths)
                 listener = listen.HotwordListener(
                     command_queue,
                     keyword_paths,