{"id":2201559,"recorded_at":"2026-11-02T19:13:26.680087Z","observed_at":"2026-11-02T19:13:26.680034Z","subject_kind":"source_record","subject":"x402_bazaar:https://ml-metrics.x402tookit.com/threshold-sweep","kind":"listing","method":"sync.x402_bazaar/1","body":{"endpoints":[["x402","https://ml-metrics.x402tookit.com/threshold-sweep"]],"name":"Machine Learning Metrics","owner_address":"0xb531320805c5bed1d46aeadcf4f008fdf172dbda","raw":{"accepts":[{"amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa","scheme":"exact"},{"amount":"20000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"feePayer":"D6ZhtNQ5nT9ZnTHUbqXZsTx5MH2rPFiBBggX4hY1WePM","transactionVersions":[0]},"maxTimeoutSeconds":300,"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"DUPiupXtuox38dcGoXUKer5mAydCzmaHjrbQ66qeEm8s","scheme":"exact"},{"amount":"20000","asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:137","payTo":"0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa","scheme":"exact"},{"amount":"20000","asset":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:42161","payTo":"0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa","scheme":"exact"}],"description":"Sweep every score threshold for binary labels and return the best F1, Youden J and accuracy thresholds with their metrics.","extensions":{"bazaar":{"info":{"input":{"method":"GET","queryParams":{"labels":"0,0,1,1","scores":"0.1,0.4,0.35,0.8"},"type":"http"},"output":{"example":{"asOf":"2026-10-21T05:49:45.382Z","bestAccuracy":{"accuracy":0.75,"f1":0.666667,"fn":1,"fp":0,"precision":1,"recall":0.5,"specificity":1,"threshold":0.8,"tn":2,"tp":1,"youdenJ":0.5},"bestF1":{"accuracy":0.75,"f1":0.8,"fn":0,"fp":1,"precision":0.666667,"recall":1,"specificity":0.5,"threshold":0.35,"tn":1,"tp":2,"youdenJ":0.5},"bestYouden":{"accuracy":0.75,"f1":0.666667,"fn":1,"fp":0,"precision":1,"recall":0.5,"specificity":1,"threshold":0.8,"tn":2,"tp":1,"youdenJ":0.5},"degraded":false,"disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.","negatives":2,"notChecked":["costs of false positives versus false negatives (pick the threshold that fits them)","overfitting of a threshold chosen on the same data","…1 more"],"positives":2,"reasons":["Ties between thresholds resolve to the higher threshold.","Youden J ties at thresholds 0.8, 0.35."],"source":"computed locally","summary":"Best F1 0.8 at threshold 0.35; best Youden J 0.5 at 0.8; best accuracy 0.75 at 0.8.","sweep":[{"accuracy":0.75,"f1":0.666667,"fn":1,"fp":0,"precision":1,"recall":0.5,"specificity":1,"threshold":0.8,"tn":2,"tp":1,"youdenJ":0.5},{"accuracy":0.5,"f1":0.5,"fn":1,"fp":1,"precision":0.5,"recall":0.5,"specificity":0.5,"threshold":0.4,"tn":1,"tp":1,"youdenJ":0}],"sweepTruncated":false,"verdict":"USABLE_THRESHOLD","youdenTiedThresholds":[0.8,0.35]},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"labels":{"description":"True binary labels 0/1, comma-separated or JSON array, up to 10000 values","type":"string"},"scores":{"description":"Model scores (higher = more positive); a sample is predicted positive when score >= threshold","type":"string"}},"required":["labels","scores"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"asOf":{"type":["null","string"]},"bestAccuracy":{"properties":{"accuracy":{"type":["null","number"]},"f1":{"type":["null","number"]},"fn":{"type":["null","number"]},"fp":{"type":["null","number"]},"precision":{"type":["null","number"]},"recall":{"type":["null","number"]},"specificity":{"type":["null","number"]},"threshold":{"type":["null","number"]},"tn":{"type":["null","number"]},"tp":{"type":["null","number"]},"youdenJ":{"type":["null","number"]}},"type":["null","object"]},"bestF1":{"properties":{"accuracy":{"type":["null","number"]},"f1":{"type":["null","number"]},"fn":{"type":["null","number"]},"fp":{"type":["null","number"]},"precision":{"type":["null","number"]},"recall":{"type":["null","number"]},"specificity":{"type":["null","number"]},"threshold":{"type":["null","number"]},"tn":{"type":["null","number"]},"tp":{"type":["null","number"]},"youdenJ":{"type":["null","number"]}},"type":["null","object"]},"bestYouden":{"properties":{"accuracy":{"type":["null","number"]},"f1":{"type":["null","number"]},"fn":{"type":["null","number"]},"fp":{"type":["null","number"]},"precision":{"type":["null","number"]},"recall":{"type":["null","number"]},"specificity":{"type":["null","number"]},"threshold":{"type":["null","number"]},"tn":{"type":["null","number"]},"tp":{"type":["null","number"]},"youdenJ":{"type":["null","number"]}},"type":["null","object"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"negatives":{"type":["null","number"]},"notChecked":{"items":{"type":"string"},"type":["array","null"]},"positives":{"type":["null","number"]},"reasons":{"items":{"type":"string"},"type":["array","null"]},"source":{"type":["null","string"]},"summary":{"type":["null","string"]},"sweep":{"items":{"properties":{"accuracy":{"type":["null","number"]},"f1":{"type":["null","number"]},"fn":{"type":["null","number"]},"fp":{"type":["null","number"]},"precision":{"type":["null","number"]},"recall":{"type":["null","number"]},"specificity":{"type":["null","number"]},"threshold":{"type":["null","number"]},"tn":{"type":["null","number"]},"tp":{"type":["null","number"]},"youdenJ":{"type":["null","number"]}},"type":"object"},"type":["array","null"]},"sweepTruncated":{"type":["boolean","null"]},"verdict":{"type":["null","string"]},"youdenTiedThresholds":{"items":{"type":"number"},"type":["array","null"]}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-01T23:39:01.272Z","quality":{"l30DaysTotalCalls":1,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-01T23:39:01.099Z"},"resource":"https://ml-metrics.x402tookit.com/threshold-sweep","serviceName":"Machine Learning Metrics","tags":["machine-learning","threshold","f1","youden","classification"],"type":"http","x402Version":2},"source":"x402_bazaar","summary":"Sweep every score threshold for binary labels and return the best F1, Youden J and accuracy thresholds with their metrics."},"body_sha256":"e814725f847a234a28263a310b163e787dbf9e2ea5e4a33c9c40c1d1d2ece77d","prev_id":null,"leaf":"0x614e8b9156086340a8495d41f0363d2803f8a26ac9099202686a824b2960cb0d","leaf_text":"{\"body\":\"e814725f847a234a28263a310b163e787dbf9e2ea5e4a33c9c40c1d1d2ece77d\",\"id\":2201559,\"kind\":\"listing\",\"method\":\"sync.x402_bazaar/1\",\"observed_us\":1793646806680034,\"prev\":null,\"subject\":\"x402_bazaar:https://ml-metrics.x402tookit.com/threshold-sweep\",\"subject_kind\":\"source_record\"}","day":{"day":"2026-11-02","leaves":444186,"root":"0x78fecaabbe319e56f5c4b80fc02e2052e198ad24781da8832a475ff65f2002d1","chained":"0xdc35957db5d1371ca382b9152878ffece28ec7c5cb4f98fd71ddb367f8b999b2","anchor_chain":"eip155:5042002","anchor_tx":"0x56b814612eb2e3e544153df3e91e1f7199106d1e430c7d8c6b653feeb9ebe9af","anchor_block":70432815},"proof":["0x614e4e50e448c7249c1cfee09919086359282379acf2c18a79e528e86173f461","0xe50f16c471a75055412b750cc8606fd6a538b99504133432c008630c4fb5d364","0xf5cee52d607f112d02d958539cb88afcd06ccffcd2937f1537fc9f32ea795b62","0x0a986e517bde063b772e38c0b763a757527aeb75b971fc70d11fa822ee51cf1e","0x6c2d50181695593b1807a23c520e361ff8e7872cde6d253e8c1d8fa1eaa6d2fb","0x2523de0b50bdedc8591b783da6631c677753a79712db99f807ddbf5ac6e2a1ba","0x948e4ed45200102698988b5d0bd20216c903c2fe33b3eb3fd25bab514d868996","0x34aeb4ca6edb00495fac283c92dd8bc51421470f33d74f36e9b07394b40b148f","0x33783688e22431e14356667e956ebf8895c9b83df9bff950271fc2400e4f5415","0xf8a76aa2f5c58aa02b6d0b68ab266fe118948bb14166a4eae8ac8afe0f12063c","0x396a59d07e6c3bf718735cd3b5976e1b078deed3c26e8cb57113a853b51d400a","0x6b4875590ee8954f5315611ea1c32c35ce609ce69cc5cd56dab438a799f4f825","0xfcf5d9c790c40588489c41a23736feba4efc9e83eda3317c30f53a98ce8d1d89","0x6ae97c2bdc679e3326a739627f6c3a307d7e25e547b9bf23dbf2622fb26d858e","0x23f4763e8db2efe57fbc28dfc68f2b97b65f54a03425994e68157763af649a50","0x0e5696ae625571c52ddcd8dc09aa6c994b4ab38f2086df20d56f1f01c603e501","0xf9973981f80219d4f00fa9186b40a8144accc0c9875572fb79eaea312a21a187","0x4d205063c881c48edbbb37762a8d3bbb7444d4c42daa882f663a231893d25c35","0x365b161a4b68d750dcc4b3ecce1154a2163c87b08762079428e68f0ebb6a754e"]}