autoevals
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -469,3 +469,3 @@ var __defProp = Object.defineProperty; | ||
if (expected === void 0) { | ||
throw new Error("NumericDifference requires an expected value"); | ||
throw new Error("NumericDiff requires an expected value"); | ||
} | ||
@@ -472,0 +472,0 @@ const score = output === 0 && expected === 0 ? 1 : 1 - Math.abs(expected - output) / (Math.abs(expected) + Math.abs(output)); |
@@ -469,3 +469,3 @@ var __defProp = Object.defineProperty; | ||
if (expected === void 0) { | ||
throw new Error("NumericDifference requires an expected value"); | ||
throw new Error("NumericDiff requires an expected value"); | ||
} | ||
@@ -472,0 +472,0 @@ const score = output === 0 && expected === 0 ? 1 : 1 - Math.abs(expected - output) / (Math.abs(expected) + Math.abs(output)); |
@@ -10,3 +10,3 @@ "use strict"; | ||
if (expected === undefined) { | ||
throw new Error("NumericDifference requires an expected value"); | ||
throw new Error("NumericDiff requires an expected value"); | ||
} | ||
@@ -13,0 +13,0 @@ const score = output === 0 && expected === 0 |
{ | ||
"name": "autoevals", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "Universal library for evaluating AI models", | ||
@@ -5,0 +5,0 @@ "main": "jsdist/bundle.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
294384
53
3354