evalsuite 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/evalsuite_bg.wasm +0 -0
- package/package.json +1 -1
- package/web/evalsuite_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -14,7 +14,21 @@ await init();
|
|
|
14
14
|
evaluate("bleu", { references: ["the cat sat on the mat"], predictions: ["the cat sat on a mat"] });
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Metrics
|
|
18
|
-
average_precision, log_loss, brier_score,
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Metrics (`es.metrics()`): classification (accuracy, balanced_accuracy, precision, recall, f1, specificity, mcc,
|
|
18
|
+
roc_auc, average_precision, log_loss, brier_score), clinical (sensitivity, ppv, npv, lr_positive, lr_negative,
|
|
19
|
+
diagnostic_odds_ratio, youden_j, net_benefit), calibration (calibration_slope, calibration_intercept,
|
|
20
|
+
expected_calibration_error, maximum_calibration_error, hosmer_lemeshow), regression (mae, mse, rmse, r2, mape,
|
|
21
|
+
median_absolute_error, max_error), text (bleu, chrf, ter, rouge_1, rouge_2, rouge_l), retrieval (ndcg, mrr, map,
|
|
22
|
+
precision_at_k, recall_at_k, hit_rate), segmentation (dice, iou) and drift (psi, ks).
|
|
23
|
+
|
|
24
|
+
Arguments: `y_true`, `y_pred`, `y_prob`, `average`, `sample_weight`, `pos_label`, `threshold`; `references` /
|
|
25
|
+
`predictions` for text; `relevant` (lists of ids or `{id: grade}`), `retrieved` and `k` for retrieval; flat
|
|
26
|
+
`y_true` / `y_pred` masks with `shape` for segmentation; `reference` / `current` for drift.
|
|
27
|
+
|
|
28
|
+
Confidence intervals: add `ci: "analytic"` (Wilson for proportions, DeLong for ROC AUC, bootstrap otherwise) or
|
|
29
|
+
`ci: "bootstrap"` (BCa; `n_resamples`, `seed`, `level`):
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
es.evaluate("roc_auc", { y_true, y_prob, ci: "analytic" });
|
|
33
|
+
// { metric: "roc_auc", value: 0.83, ci_low: 0.71, ci_high: 0.95, ci_level: 0.95, ci_method: "delong" }
|
|
34
|
+
```
|
package/evalsuite_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evalsuite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Evaluation metrics (classification, regression, text, drift) from the EvalSuite Rust engine, for Node and the browser via WebAssembly.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Manoj Kumar C S <cs.manojkumar18@gmail.com>",
|
package/web/evalsuite_bg.wasm
CHANGED
|
Binary file
|