evalsense 0.3.1 → 0.3.2

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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getCurrentSuite, setCurrentSuite, addSuite, addTestToCurrentSuite, DatasetError, IntegrityError, buildConfusionMatrix, getTruePositives, getFalsePositives, getFalseNegatives, getSupport, AssertionError, recordAssertion, recordFieldMetrics } from './chunk-K6QPJ2NO.js';
2
- export { AssertionError, ConfigurationError, ConsoleReporter, DatasetError, EvalSenseError, ExitCodes, IntegrityError, JsonReporter, TestExecutionError, buildConfusionMatrix, discoverEvalFiles, executeEvalFiles, formatConfusionMatrix, getExitCode, parseReport } from './chunk-K6QPJ2NO.js';
1
+ import { getCurrentSuite, setCurrentSuite, addSuite, addTestToCurrentSuite, DatasetError, IntegrityError, buildConfusionMatrix, getTruePositives, getFalsePositives, getFalseNegatives, getSupport, AssertionError, recordAssertion, recordFieldMetrics } from './chunk-IYLSY7NX.js';
2
+ export { AssertionError, ConfigurationError, ConsoleReporter, DatasetError, EvalSenseError, ExitCodes, IntegrityError, JsonReporter, TestExecutionError, buildConfusionMatrix, discoverEvalFiles, executeEvalFiles, formatConfusionMatrix, getExitCode, parseReport } from './chunk-IYLSY7NX.js';
3
3
  import './chunk-DGUM43GV.js';
4
4
  import { readFileSync } from 'fs';
5
5
  import { resolve, extname } from 'path';
@@ -567,9 +567,6 @@ var BinarizeSelector = class {
567
567
  };
568
568
  this.assertions.push(result);
569
569
  recordAssertion(result);
570
- if (!passed) {
571
- throw new AssertionError(result.message, threshold, metrics.accuracy, this.fieldName);
572
- }
573
570
  return this;
574
571
  }
575
572
  /**
@@ -611,9 +608,6 @@ var BinarizeSelector = class {
611
608
  };
612
609
  this.assertions.push(result);
613
610
  recordAssertion(result);
614
- if (!passed) {
615
- throw new AssertionError(result.message, actualThreshold, actualPrecision, this.fieldName);
616
- }
617
611
  return this;
618
612
  }
619
613
  /**
@@ -655,9 +649,6 @@ var BinarizeSelector = class {
655
649
  };
656
650
  this.assertions.push(result);
657
651
  recordAssertion(result);
658
- if (!passed) {
659
- throw new AssertionError(result.message, actualThreshold, actualRecall, this.fieldName);
660
- }
661
652
  return this;
662
653
  }
663
654
  /**
@@ -697,9 +688,6 @@ var BinarizeSelector = class {
697
688
  };
698
689
  this.assertions.push(result);
699
690
  recordAssertion(result);
700
- if (!passed) {
701
- throw new AssertionError(result.message, actualThreshold, actualF1, this.fieldName);
702
- }
703
691
  return this;
704
692
  }
705
693
  /**
@@ -790,9 +778,6 @@ var FieldSelector = class {
790
778
  };
791
779
  this.assertions.push(result);
792
780
  recordAssertion(result);
793
- if (!passed) {
794
- throw new AssertionError(result.message, threshold, metrics.accuracy, this.fieldName);
795
- }
796
781
  return this;
797
782
  }
798
783
  /**
@@ -835,9 +820,6 @@ var FieldSelector = class {
835
820
  };
836
821
  this.assertions.push(result);
837
822
  recordAssertion(result);
838
- if (!passed) {
839
- throw new AssertionError(result.message, actualThreshold, actualPrecision, this.fieldName);
840
- }
841
823
  return this;
842
824
  }
843
825
  /**
@@ -880,9 +862,6 @@ var FieldSelector = class {
880
862
  };
881
863
  this.assertions.push(result);
882
864
  recordAssertion(result);
883
- if (!passed) {
884
- throw new AssertionError(result.message, actualThreshold, actualRecall, this.fieldName);
885
- }
886
865
  return this;
887
866
  }
888
867
  /**
@@ -925,9 +904,6 @@ var FieldSelector = class {
925
904
  };
926
905
  this.assertions.push(result);
927
906
  recordAssertion(result);
928
- if (!passed) {
929
- throw new AssertionError(result.message, actualThreshold, actualF1, this.fieldName);
930
- }
931
907
  return this;
932
908
  }
933
909
  /**
@@ -987,14 +963,6 @@ var FieldSelector = class {
987
963
  };
988
964
  this.assertions.push(result);
989
965
  recordAssertion(result);
990
- if (!passed) {
991
- throw new AssertionError(
992
- result.message,
993
- percentageThreshold,
994
- actualPercentage,
995
- this.fieldName
996
- );
997
- }
998
966
  return this;
999
967
  }
1000
968
  /**
@@ -1033,14 +1001,6 @@ var FieldSelector = class {
1033
1001
  };
1034
1002
  this.assertions.push(result);
1035
1003
  recordAssertion(result);
1036
- if (!passed) {
1037
- throw new AssertionError(
1038
- result.message,
1039
- percentageThreshold,
1040
- actualPercentage,
1041
- this.fieldName
1042
- );
1043
- }
1044
1004
  return this;
1045
1005
  }
1046
1006
  // ============================================================================
@@ -1106,9 +1066,6 @@ var FieldSelector = class {
1106
1066
  };
1107
1067
  this.assertions.push(result);
1108
1068
  recordAssertion(result);
1109
- if (!passed) {
1110
- throw new AssertionError(result.message, threshold, metrics.mae, this.fieldName);
1111
- }
1112
1069
  return this;
1113
1070
  }
1114
1071
  /**
@@ -1137,9 +1094,6 @@ var FieldSelector = class {
1137
1094
  };
1138
1095
  this.assertions.push(result);
1139
1096
  recordAssertion(result);
1140
- if (!passed) {
1141
- throw new AssertionError(result.message, threshold, metrics.rmse, this.fieldName);
1142
- }
1143
1097
  return this;
1144
1098
  }
1145
1099
  /**
@@ -1170,9 +1124,6 @@ var FieldSelector = class {
1170
1124
  };
1171
1125
  this.assertions.push(result);
1172
1126
  recordAssertion(result);
1173
- if (!passed) {
1174
- throw new AssertionError(result.message, threshold, metrics.r2, this.fieldName);
1175
- }
1176
1127
  return this;
1177
1128
  }
1178
1129
  /**