fix: drastically reduce false-positive consumption anomaly banners
Two changes: 1. Skip prediction when expected_qty=0 — model says 'should be finished' but user simply restocked or consumed less. Not actionable. 2. Raise 'more than expected' threshold to 400% (was 30%). Having more than expected almost always means a restock the model doesn't know about yet — only truly extreme cases (>4x) are flagged. 'Less than expected' stays at 30% (still actionable: unregistered use).
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@
|
||||
<title>EverShelf</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<link rel="icon" type="image/png" href="assets/img/logo/logo_icon.png">
|
||||
<link rel="stylesheet" href="assets/css/style.css?v=20260511h">
|
||||
<link rel="stylesheet" href="assets/css/style.css?v=20260511i">
|
||||
<!-- QuaggaJS for barcode scanning -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@ericblade/quagga2@1.8.4/dist/quagga.min.js"></script>
|
||||
<!-- @xenova/transformers: ES-module bootstrap that exposes a lazy category-classifier as window._categoryPipelinePromise -->
|
||||
@@ -1469,6 +1469,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/js/app.js?v=20260511h"></script>
|
||||
<script src="assets/js/app.js?v=20260511i"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user