nlptoolkit-classification 1.0.8 → 1.0.9
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/Attribute/Attribute.js +6 -16
- package/dist/Attribute/Attribute.js.map +1 -1
- package/dist/Attribute/AttributeType.js +22 -32
- package/dist/Attribute/AttributeType.js.map +1 -1
- package/dist/Attribute/BinaryAttribute.js +14 -24
- package/dist/Attribute/BinaryAttribute.js.map +1 -1
- package/dist/Attribute/ContinuousAttribute.js +46 -55
- package/dist/Attribute/ContinuousAttribute.js.map +1 -1
- package/dist/Attribute/DiscreteAttribute.js +38 -48
- package/dist/Attribute/DiscreteAttribute.js.map +1 -1
- package/dist/Attribute/DiscreteIndexedAttribute.js +47 -55
- package/dist/Attribute/DiscreteIndexedAttribute.js.map +1 -1
- package/dist/DataSet/DataDefinition.js +115 -123
- package/dist/DataSet/DataDefinition.js.map +1 -1
- package/dist/DataSet/DataSet.js +268 -245
- package/dist/DataSet/DataSet.js.map +1 -1
- package/dist/DistanceMetric/DistanceMetric.js +2 -12
- package/dist/DistanceMetric/EuclidianDistance.js +27 -37
- package/dist/DistanceMetric/EuclidianDistance.js.map +1 -1
- package/dist/DistanceMetric/MahalanobisDistance.js +27 -36
- package/dist/DistanceMetric/MahalanobisDistance.js.map +1 -1
- package/dist/Experiment/BootstrapRun.js +31 -40
- package/dist/Experiment/BootstrapRun.js.map +1 -1
- package/dist/Experiment/Experiment.js +46 -53
- package/dist/Experiment/Experiment.js.map +1 -1
- package/dist/Experiment/KFoldRun.js +45 -54
- package/dist/Experiment/KFoldRun.js.map +1 -1
- package/dist/Experiment/KFoldRunSeparateTest.js +48 -58
- package/dist/Experiment/KFoldRunSeparateTest.js.map +1 -1
- package/dist/Experiment/MultipleRun.js +2 -12
- package/dist/Experiment/MxKFoldRun.js +31 -40
- package/dist/Experiment/MxKFoldRun.js.map +1 -1
- package/dist/Experiment/MxKFoldRunSeparateTest.js +35 -44
- package/dist/Experiment/MxKFoldRunSeparateTest.js.map +1 -1
- package/dist/Experiment/SingleRun.js +2 -12
- package/dist/Experiment/SingleRunWithK.js +39 -48
- package/dist/Experiment/SingleRunWithK.js.map +1 -1
- package/dist/Experiment/StratifiedKFoldRun.js +26 -36
- package/dist/Experiment/StratifiedKFoldRun.js.map +1 -1
- package/dist/Experiment/StratifiedKFoldRunSeparateTest.js +30 -40
- package/dist/Experiment/StratifiedKFoldRunSeparateTest.js.map +1 -1
- package/dist/Experiment/StratifiedMxKFoldRun.js +29 -39
- package/dist/Experiment/StratifiedMxKFoldRun.js.map +1 -1
- package/dist/Experiment/StratifiedMxKFoldRunSeparateTest.js +34 -43
- package/dist/Experiment/StratifiedMxKFoldRunSeparateTest.js.map +1 -1
- package/dist/Experiment/StratifiedSingleRunWithK.js +27 -36
- package/dist/Experiment/StratifiedSingleRunWithK.js.map +1 -1
- package/dist/FeatureSelection/BackwardSelection.js +26 -36
- package/dist/FeatureSelection/BackwardSelection.js.map +1 -1
- package/dist/FeatureSelection/FeatureSubSet.js +72 -82
- package/dist/FeatureSelection/FeatureSubSet.js.map +1 -1
- package/dist/FeatureSelection/FloatingSelection.js +25 -35
- package/dist/FeatureSelection/FloatingSelection.js.map +1 -1
- package/dist/FeatureSelection/ForwardSelection.js +25 -35
- package/dist/FeatureSelection/ForwardSelection.js.map +1 -1
- package/dist/FeatureSelection/SubSetSelection.js +69 -78
- package/dist/FeatureSelection/SubSetSelection.js.map +1 -1
- package/dist/Filter/DiscreteToContinuous.js +50 -60
- package/dist/Filter/DiscreteToContinuous.js.map +1 -1
- package/dist/Filter/DiscreteToIndexed.js +40 -50
- package/dist/Filter/DiscreteToIndexed.js.map +1 -1
- package/dist/Filter/FeatureFilter.js +23 -32
- package/dist/Filter/FeatureFilter.js.map +1 -1
- package/dist/Filter/LaryFilter.js +46 -55
- package/dist/Filter/LaryFilter.js.map +1 -1
- package/dist/Filter/LaryToBinary.js +48 -58
- package/dist/Filter/LaryToBinary.js.map +1 -1
- package/dist/Filter/Normalize.js +33 -41
- package/dist/Filter/Normalize.js.map +1 -1
- package/dist/Filter/Pca.js +86 -96
- package/dist/Filter/Pca.js.map +1 -1
- package/dist/Filter/TrainedFeatureFilter.js +14 -24
- package/dist/Filter/TrainedFeatureFilter.js.map +1 -1
- package/dist/Instance/CompositeInstance.js +46 -56
- package/dist/Instance/CompositeInstance.js.map +1 -1
- package/dist/Instance/Instance.js +145 -154
- package/dist/Instance/Instance.js.map +1 -1
- package/dist/InstanceList/InstanceList.js +466 -443
- package/dist/InstanceList/InstanceList.js.map +1 -1
- package/dist/InstanceList/InstanceListOfSameClass.js +23 -32
- package/dist/InstanceList/InstanceListOfSameClass.js.map +1 -1
- package/dist/InstanceList/Partition.js +167 -177
- package/dist/InstanceList/Partition.js.map +1 -1
- package/dist/Model/DecisionTree/DecisionCondition.js +71 -80
- package/dist/Model/DecisionTree/DecisionCondition.js.map +1 -1
- package/dist/Model/DecisionTree/DecisionNode.js +302 -311
- package/dist/Model/DecisionTree/DecisionNode.js.map +1 -1
- package/dist/Model/DecisionTree/DecisionStump.js +22 -32
- package/dist/Model/DecisionTree/DecisionStump.js.map +1 -1
- package/dist/Model/DecisionTree/DecisionTree.js +89 -98
- package/dist/Model/DecisionTree/DecisionTree.js.map +1 -1
- package/dist/Model/DummyModel.js +64 -73
- package/dist/Model/DummyModel.js.map +1 -1
- package/dist/Model/Ensemble/BaggingModel.js +34 -44
- package/dist/Model/Ensemble/BaggingModel.js.map +1 -1
- package/dist/Model/Ensemble/RandomForestModel.js +31 -41
- package/dist/Model/Ensemble/RandomForestModel.js.map +1 -1
- package/dist/Model/Ensemble/TreeEnsembleModel.js +55 -64
- package/dist/Model/Ensemble/TreeEnsembleModel.js.map +1 -1
- package/dist/Model/Model.js +130 -140
- package/dist/Model/Model.js.map +1 -1
- package/dist/Model/NeuralNetwork/DeepNetworkModel.js +162 -169
- package/dist/Model/NeuralNetwork/DeepNetworkModel.js.map +1 -1
- package/dist/Model/NeuralNetwork/LinearPerceptronModel.js +69 -78
- package/dist/Model/NeuralNetwork/LinearPerceptronModel.js.map +1 -1
- package/dist/Model/NeuralNetwork/MultiLayerPerceptronModel.js +112 -120
- package/dist/Model/NeuralNetwork/MultiLayerPerceptronModel.js.map +1 -1
- package/dist/Model/NeuralNetwork/NeuralNetworkModel.js +197 -201
- package/dist/Model/NeuralNetwork/NeuralNetworkModel.js.map +1 -1
- package/dist/Model/NonParametric/KnnInstance.js +21 -29
- package/dist/Model/NonParametric/KnnInstance.js.map +1 -1
- package/dist/Model/NonParametric/KnnModel.js +101 -108
- package/dist/Model/NonParametric/KnnModel.js.map +1 -1
- package/dist/Model/Parametric/GaussianModel.js +82 -91
- package/dist/Model/Parametric/GaussianModel.js.map +1 -1
- package/dist/Model/Parametric/KMeansModel.js +59 -67
- package/dist/Model/Parametric/KMeansModel.js.map +1 -1
- package/dist/Model/Parametric/LdaModel.js +83 -91
- package/dist/Model/Parametric/LdaModel.js.map +1 -1
- package/dist/Model/Parametric/NaiveBayesModel.js +119 -132
- package/dist/Model/Parametric/NaiveBayesModel.js.map +1 -1
- package/dist/Model/Parametric/QdaModel.js +70 -79
- package/dist/Model/Parametric/QdaModel.js.map +1 -1
- package/dist/Model/RandomModel.js +85 -92
- package/dist/Model/RandomModel.js.map +1 -1
- package/dist/Model/ValidatedModel.js +21 -31
- package/dist/Model/ValidatedModel.js.map +1 -1
- package/dist/Parameter/ActivationFunction.js +9 -19
- package/dist/Parameter/ActivationFunction.js.map +1 -1
- package/dist/Parameter/BaggingParameter.js +24 -33
- package/dist/Parameter/BaggingParameter.js.map +1 -1
- package/dist/Parameter/C45Parameter.js +34 -42
- package/dist/Parameter/C45Parameter.js.map +1 -1
- package/dist/Parameter/DeepNetworkParameter.js +48 -56
- package/dist/Parameter/DeepNetworkParameter.js.map +1 -1
- package/dist/Parameter/KMeansParameter.js +29 -38
- package/dist/Parameter/KMeansParameter.js.map +1 -1
- package/dist/Parameter/KnnParameter.js +25 -34
- package/dist/Parameter/KnnParameter.js.map +1 -1
- package/dist/Parameter/LinearPerceptronParameter.js +56 -62
- package/dist/Parameter/LinearPerceptronParameter.js.map +1 -1
- package/dist/Parameter/MultiLayerPerceptronParameter.js +38 -46
- package/dist/Parameter/MultiLayerPerceptronParameter.js.map +1 -1
- package/dist/Parameter/Parameter.js +21 -30
- package/dist/Parameter/Parameter.js.map +1 -1
- package/dist/Parameter/RandomForestParameter.js +25 -34
- package/dist/Parameter/RandomForestParameter.js.map +1 -1
- package/dist/Performance/ClassificationPerformance.js +24 -33
- package/dist/Performance/ClassificationPerformance.js.map +1 -1
- package/dist/Performance/ConfusionMatrix.js +149 -158
- package/dist/Performance/ConfusionMatrix.js.map +1 -1
- package/dist/Performance/DetailedClassificationPerformance.js +23 -32
- package/dist/Performance/DetailedClassificationPerformance.js.map +1 -1
- package/dist/Performance/ExperimentPerformance.js +184 -161
- package/dist/Performance/ExperimentPerformance.js.map +1 -1
- package/dist/Performance/Performance.js +21 -30
- package/dist/Performance/Performance.js.map +1 -1
- package/dist/StatisticalTest/Combined5x2F.js +41 -51
- package/dist/StatisticalTest/Combined5x2F.js.map +1 -1
- package/dist/StatisticalTest/Combined5x2t.js +42 -52
- package/dist/StatisticalTest/Combined5x2t.js.map +1 -1
- package/dist/StatisticalTest/Paired5x2t.js +40 -50
- package/dist/StatisticalTest/Paired5x2t.js.map +1 -1
- package/dist/StatisticalTest/PairedTest.js +31 -41
- package/dist/StatisticalTest/PairedTest.js.map +1 -1
- package/dist/StatisticalTest/Pairedt.js +38 -48
- package/dist/StatisticalTest/Pairedt.js.map +1 -1
- package/dist/StatisticalTest/Sign.js +50 -60
- package/dist/StatisticalTest/Sign.js.map +1 -1
- package/dist/StatisticalTest/StatisticalTestResult.js +65 -73
- package/dist/StatisticalTest/StatisticalTestResult.js.map +1 -1
- package/dist/StatisticalTest/StatisticalTestResultType.js +11 -21
- package/dist/StatisticalTest/StatisticalTestResultType.js.map +1 -1
- package/dist/index.js +95 -101
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/tsconfig.json +4 -3
- package/source/tsconfig.json +0 -13
|
@@ -1,83 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatisticalTestResult = void 0;
|
|
4
|
+
const StatisticalTestResultType_1 = require("./StatisticalTestResultType");
|
|
5
|
+
class StatisticalTestResult {
|
|
6
|
+
pValue;
|
|
7
|
+
onlyTwoTailed;
|
|
8
|
+
/**
|
|
9
|
+
* Constructor of the StatisticalTestResult. It sets the attribute values.
|
|
10
|
+
* @param pValue p value of the statistical test result
|
|
11
|
+
* @param onlyTwoTailed True, if this test applicable only two tailed tests, false otherwise.
|
|
12
|
+
*/
|
|
13
|
+
constructor(pValue, onlyTwoTailed) {
|
|
14
|
+
this.pValue = pValue;
|
|
15
|
+
this.onlyTwoTailed = onlyTwoTailed;
|
|
5
16
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.pValue = pValue;
|
|
22
|
-
this.onlyTwoTailed = onlyTwoTailed;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns reject or failed to reject, depending on the alpha level and p value of the statistical test that checks
|
|
26
|
-
* one tailed null hypothesis such as mu1 < mu2. If p value is less than the alpha level, the test rejects the null
|
|
27
|
-
* hypothesis. Otherwise, it fails to reject the null hypothesis.
|
|
28
|
-
* @param alpha Alpha level of the test
|
|
29
|
-
* @return If p value is less than the alpha level, the test rejects the null hypothesis. Otherwise, it fails to
|
|
30
|
-
* reject the null hypothesis.
|
|
31
|
-
*/
|
|
32
|
-
oneTailed(alpha) {
|
|
33
|
-
if (!this.onlyTwoTailed) {
|
|
34
|
-
if (this.pValue < alpha) {
|
|
35
|
-
return StatisticalTestResultType_1.StatisticalTestResultType.REJECT;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
39
|
-
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns reject or failed to reject, depending on the alpha level and p value of the statistical test that checks
|
|
19
|
+
* one tailed null hypothesis such as mu1 < mu2. If p value is less than the alpha level, the test rejects the null
|
|
20
|
+
* hypothesis. Otherwise, it fails to reject the null hypothesis.
|
|
21
|
+
* @param alpha Alpha level of the test
|
|
22
|
+
* @return If p value is less than the alpha level, the test rejects the null hypothesis. Otherwise, it fails to
|
|
23
|
+
* reject the null hypothesis.
|
|
24
|
+
*/
|
|
25
|
+
oneTailed(alpha) {
|
|
26
|
+
if (!this.onlyTwoTailed) {
|
|
27
|
+
if (this.pValue < alpha) {
|
|
28
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.REJECT;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
40
32
|
}
|
|
41
33
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
else {
|
|
61
|
-
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
62
|
-
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns reject or failed to reject, depending on the alpha level and p value of the statistical test that checks
|
|
37
|
+
* one tailed null hypothesis such as mu1 < mu2 or two tailed null hypothesis such as mu1 = mu2. If the null
|
|
38
|
+
* hypothesis is two tailed, and p value is less than the alpha level, the test rejects the null hypothesis.
|
|
39
|
+
* Otherwise, it fails to reject the null hypothesis. If the null hypothesis is one tailed, and p value is less
|
|
40
|
+
* than alpha / 2 or p value is larger than 1 - alpha / 2, the test rejects the null hypothesis. Otherwise, it
|
|
41
|
+
* fails to reject the null hypothesis.
|
|
42
|
+
* @param alpha Alpha level of the test
|
|
43
|
+
* @return If the null hypothesis is two tailed, and p value is less than the alpha level, the test rejects the
|
|
44
|
+
* null hypothesis. Otherwise, it fails to reject the null hypothesis. If the null hypothesis is one tailed, and
|
|
45
|
+
* p value is less than alpha / 2 or p value is larger than 1 - alpha / 2, the test rejects the null hypothesis.
|
|
46
|
+
* Otherwise, it fails to reject the null hypothesis.
|
|
47
|
+
*/
|
|
48
|
+
twoTailed(alpha) {
|
|
49
|
+
if (this.onlyTwoTailed) {
|
|
50
|
+
if (this.pValue < alpha) {
|
|
51
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.REJECT;
|
|
63
52
|
}
|
|
64
53
|
else {
|
|
65
|
-
|
|
66
|
-
return StatisticalTestResultType_1.StatisticalTestResultType.REJECT;
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
70
|
-
}
|
|
54
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
71
55
|
}
|
|
72
56
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
57
|
+
else {
|
|
58
|
+
if (this.pValue < alpha / 2 || this.pValue > 1 - alpha / 2) {
|
|
59
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.REJECT;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return StatisticalTestResultType_1.StatisticalTestResultType.FAILED_TO_REJECT;
|
|
63
|
+
}
|
|
79
64
|
}
|
|
80
65
|
}
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Accessor for the p value of the statistical test result.
|
|
68
|
+
* @return p value of the statistical test result
|
|
69
|
+
*/
|
|
70
|
+
getPValue() {
|
|
71
|
+
return this.pValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.StatisticalTestResult = StatisticalTestResult;
|
|
83
75
|
//# sourceMappingURL=StatisticalTestResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatisticalTestResult.js","sourceRoot":"","sources":["../../source/StatisticalTest/StatisticalTestResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatisticalTestResult.js","sourceRoot":"","sources":["../../source/StatisticalTest/StatisticalTestResult.ts"],"names":[],"mappings":";;;AAAA,2EAAsE;AAEtE,MAAa,qBAAqB;IAEb,MAAM,CAAQ;IACd,aAAa,CAAS;IAEvC;;;;OAIG;IACH,YAAY,MAAc,EAAE,aAAsB;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,KAAa;QACnB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAC,CAAC;YACrB,IAAI,IAAI,CAAC,MAAM,GAAG,KAAK,EAAC,CAAC;gBACrB,OAAO,qDAAyB,CAAC,MAAM,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,OAAO,qDAAyB,CAAC,gBAAgB,CAAC;YACtD,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,KAAa;QACnB,IAAI,IAAI,CAAC,aAAa,EAAC,CAAC;YACpB,IAAI,IAAI,CAAC,MAAM,GAAG,KAAK,EAAC,CAAC;gBACrB,OAAO,qDAAyB,CAAC,MAAM,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,OAAO,qDAAyB,CAAC,gBAAgB,CAAC;YACtD,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,IAAI,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,EAAC,CAAC;gBACxD,OAAO,qDAAyB,CAAC,MAAM,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,OAAO,qDAAyB,CAAC,gBAAgB,CAAC;YACtD,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAA;IACtB,CAAC;CACJ;AArED,sDAqEC"}
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
exports.StatisticalTestResultType = void 0;
|
|
13
|
-
/***
|
|
14
|
-
* Enumerator class for statistical test results.
|
|
15
|
-
*/
|
|
16
|
-
var StatisticalTestResultType;
|
|
17
|
-
(function (StatisticalTestResultType) {
|
|
18
|
-
StatisticalTestResultType[StatisticalTestResultType["FAILED_TO_REJECT"] = 0] = "FAILED_TO_REJECT";
|
|
19
|
-
StatisticalTestResultType[StatisticalTestResultType["REJECT"] = 1] = "REJECT";
|
|
20
|
-
})(StatisticalTestResultType = exports.StatisticalTestResultType || (exports.StatisticalTestResultType = {}));
|
|
21
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatisticalTestResultType = void 0;
|
|
4
|
+
/***
|
|
5
|
+
* Enumerator class for statistical test results.
|
|
6
|
+
*/
|
|
7
|
+
var StatisticalTestResultType;
|
|
8
|
+
(function (StatisticalTestResultType) {
|
|
9
|
+
StatisticalTestResultType[StatisticalTestResultType["FAILED_TO_REJECT"] = 0] = "FAILED_TO_REJECT";
|
|
10
|
+
StatisticalTestResultType[StatisticalTestResultType["REJECT"] = 1] = "REJECT";
|
|
11
|
+
})(StatisticalTestResultType || (exports.StatisticalTestResultType = StatisticalTestResultType = {}));
|
|
22
12
|
//# sourceMappingURL=StatisticalTestResultType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatisticalTestResultType.js","sourceRoot":"","sources":["../../source/StatisticalTest/StatisticalTestResultType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatisticalTestResultType.js","sourceRoot":"","sources":["../../source/StatisticalTest/StatisticalTestResultType.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,yBAEX;AAFD,WAAY,yBAAyB;IACjC,iGAAgB,CAAA;IAAE,6EAAM,CAAA;AAC5B,CAAC,EAFW,yBAAyB,yCAAzB,yBAAyB,QAEpC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
3
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
4
9
|
}) : (function(o, m, k, k2) {
|
|
5
10
|
if (k2 === undefined) k2 = k;
|
|
6
11
|
o[k2] = m[k];
|
|
@@ -8,104 +13,93 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
9
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
15
|
};
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
__exportStar(require("./Performance/ExperimentPerformance"), exports);
|
|
101
|
-
__exportStar(require("./Performance/Performance"), exports);
|
|
102
|
-
__exportStar(require("./StatisticalTest/Combined5x2F"), exports);
|
|
103
|
-
__exportStar(require("./StatisticalTest/Combined5x2t"), exports);
|
|
104
|
-
__exportStar(require("./StatisticalTest/Paired5x2t"), exports);
|
|
105
|
-
__exportStar(require("./StatisticalTest/Pairedt"), exports);
|
|
106
|
-
__exportStar(require("./StatisticalTest/PairedTest"), exports);
|
|
107
|
-
__exportStar(require("./StatisticalTest/Sign"), exports);
|
|
108
|
-
__exportStar(require("./StatisticalTest/StatisticalTestResult"), exports);
|
|
109
|
-
__exportStar(require("./StatisticalTest/StatisticalTestResultType"), exports);
|
|
110
|
-
});
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Attribute/Attribute"), exports);
|
|
18
|
+
__exportStar(require("./Attribute/AttributeType"), exports);
|
|
19
|
+
__exportStar(require("./Attribute/BinaryAttribute"), exports);
|
|
20
|
+
__exportStar(require("./Attribute/ContinuousAttribute"), exports);
|
|
21
|
+
__exportStar(require("./Attribute/DiscreteAttribute"), exports);
|
|
22
|
+
__exportStar(require("./Attribute/DiscreteIndexedAttribute"), exports);
|
|
23
|
+
__exportStar(require("./DataSet/DataDefinition"), exports);
|
|
24
|
+
__exportStar(require("./DataSet/DataSet"), exports);
|
|
25
|
+
__exportStar(require("./DistanceMetric/DistanceMetric"), exports);
|
|
26
|
+
__exportStar(require("./DistanceMetric/EuclidianDistance"), exports);
|
|
27
|
+
__exportStar(require("./DistanceMetric/MahalanobisDistance"), exports);
|
|
28
|
+
__exportStar(require("./Experiment/BootstrapRun"), exports);
|
|
29
|
+
__exportStar(require("./Experiment/Experiment"), exports);
|
|
30
|
+
__exportStar(require("./Experiment/KFoldRun"), exports);
|
|
31
|
+
__exportStar(require("./Experiment/KFoldRunSeparateTest"), exports);
|
|
32
|
+
__exportStar(require("./Experiment/MultipleRun"), exports);
|
|
33
|
+
__exportStar(require("./Experiment/MxKFoldRun"), exports);
|
|
34
|
+
__exportStar(require("./Experiment/MxKFoldRunSeparateTest"), exports);
|
|
35
|
+
__exportStar(require("./Experiment/SingleRun"), exports);
|
|
36
|
+
__exportStar(require("./Experiment/SingleRunWithK"), exports);
|
|
37
|
+
__exportStar(require("./Experiment/StratifiedKFoldRun"), exports);
|
|
38
|
+
__exportStar(require("./Experiment/StratifiedKFoldRunSeparateTest"), exports);
|
|
39
|
+
__exportStar(require("./Experiment/StratifiedMxKFoldRun"), exports);
|
|
40
|
+
__exportStar(require("./Experiment/StratifiedMxKFoldRunSeparateTest"), exports);
|
|
41
|
+
__exportStar(require("./Experiment/StratifiedSingleRunWithK"), exports);
|
|
42
|
+
__exportStar(require("./FeatureSelection/BackwardSelection"), exports);
|
|
43
|
+
__exportStar(require("./FeatureSelection/FeatureSubSet"), exports);
|
|
44
|
+
__exportStar(require("./FeatureSelection/FloatingSelection"), exports);
|
|
45
|
+
__exportStar(require("./FeatureSelection/ForwardSelection"), exports);
|
|
46
|
+
__exportStar(require("./FeatureSelection/SubSetSelection"), exports);
|
|
47
|
+
__exportStar(require("./Filter/DiscreteToContinuous"), exports);
|
|
48
|
+
__exportStar(require("./Filter/DiscreteToIndexed"), exports);
|
|
49
|
+
__exportStar(require("./Filter/FeatureFilter"), exports);
|
|
50
|
+
__exportStar(require("./Filter/LaryFilter"), exports);
|
|
51
|
+
__exportStar(require("./Filter/LaryToBinary"), exports);
|
|
52
|
+
__exportStar(require("./Filter/Normalize"), exports);
|
|
53
|
+
__exportStar(require("./Filter/Pca"), exports);
|
|
54
|
+
__exportStar(require("./Filter/TrainedFeatureFilter"), exports);
|
|
55
|
+
__exportStar(require("./Instance/CompositeInstance"), exports);
|
|
56
|
+
__exportStar(require("./Instance/Instance"), exports);
|
|
57
|
+
__exportStar(require("./InstanceList/InstanceList"), exports);
|
|
58
|
+
__exportStar(require("./InstanceList/InstanceListOfSameClass"), exports);
|
|
59
|
+
__exportStar(require("./InstanceList/Partition"), exports);
|
|
60
|
+
__exportStar(require("./Model/DecisionTree/DecisionCondition"), exports);
|
|
61
|
+
__exportStar(require("./Model/DecisionTree/DecisionNode"), exports);
|
|
62
|
+
__exportStar(require("./Model/DecisionTree/DecisionTree"), exports);
|
|
63
|
+
__exportStar(require("./Model/DecisionTree/DecisionStump"), exports);
|
|
64
|
+
__exportStar(require("./Model/Ensemble/BaggingModel"), exports);
|
|
65
|
+
__exportStar(require("./Model/NeuralNetwork/DeepNetworkModel"), exports);
|
|
66
|
+
__exportStar(require("./Model/DummyModel"), exports);
|
|
67
|
+
__exportStar(require("./Model/Parametric/GaussianModel"), exports);
|
|
68
|
+
__exportStar(require("./Model/Parametric/KMeansModel"), exports);
|
|
69
|
+
__exportStar(require("./Model/Parametric/LdaModel"), exports);
|
|
70
|
+
__exportStar(require("./Model/Parametric/QdaModel"), exports);
|
|
71
|
+
__exportStar(require("./Model/Parametric/NaiveBayesModel"), exports);
|
|
72
|
+
__exportStar(require("./Model/NonParametric/KnnInstance"), exports);
|
|
73
|
+
__exportStar(require("./Model/NonParametric/KnnModel"), exports);
|
|
74
|
+
__exportStar(require("./Model/NeuralNetwork/LinearPerceptronModel"), exports);
|
|
75
|
+
__exportStar(require("./Model/Model"), exports);
|
|
76
|
+
__exportStar(require("./Model/NeuralNetwork/MultiLayerPerceptronModel"), exports);
|
|
77
|
+
__exportStar(require("./Model/NeuralNetwork/NeuralNetworkModel"), exports);
|
|
78
|
+
__exportStar(require("./Model/RandomModel"), exports);
|
|
79
|
+
__exportStar(require("./Model/Ensemble/RandomForestModel"), exports);
|
|
80
|
+
__exportStar(require("./Model/Ensemble/TreeEnsembleModel"), exports);
|
|
81
|
+
__exportStar(require("./Model/ValidatedModel"), exports);
|
|
82
|
+
__exportStar(require("./Parameter/ActivationFunction"), exports);
|
|
83
|
+
__exportStar(require("./Parameter/BaggingParameter"), exports);
|
|
84
|
+
__exportStar(require("./Parameter/C45Parameter"), exports);
|
|
85
|
+
__exportStar(require("./Parameter/DeepNetworkParameter"), exports);
|
|
86
|
+
__exportStar(require("./Parameter/KMeansParameter"), exports);
|
|
87
|
+
__exportStar(require("./Parameter/KnnParameter"), exports);
|
|
88
|
+
__exportStar(require("./Parameter/LinearPerceptronParameter"), exports);
|
|
89
|
+
__exportStar(require("./Parameter/MultiLayerPerceptronParameter"), exports);
|
|
90
|
+
__exportStar(require("./Parameter/Parameter"), exports);
|
|
91
|
+
__exportStar(require("./Parameter/RandomForestParameter"), exports);
|
|
92
|
+
__exportStar(require("./Performance/ClassificationPerformance"), exports);
|
|
93
|
+
__exportStar(require("./Performance/ConfusionMatrix"), exports);
|
|
94
|
+
__exportStar(require("./Performance/DetailedClassificationPerformance"), exports);
|
|
95
|
+
__exportStar(require("./Performance/ExperimentPerformance"), exports);
|
|
96
|
+
__exportStar(require("./Performance/Performance"), exports);
|
|
97
|
+
__exportStar(require("./StatisticalTest/Combined5x2F"), exports);
|
|
98
|
+
__exportStar(require("./StatisticalTest/Combined5x2t"), exports);
|
|
99
|
+
__exportStar(require("./StatisticalTest/Paired5x2t"), exports);
|
|
100
|
+
__exportStar(require("./StatisticalTest/Pairedt"), exports);
|
|
101
|
+
__exportStar(require("./StatisticalTest/PairedTest"), exports);
|
|
102
|
+
__exportStar(require("./StatisticalTest/Sign"), exports);
|
|
103
|
+
__exportStar(require("./StatisticalTest/StatisticalTestResult"), exports);
|
|
104
|
+
__exportStar(require("./StatisticalTest/StatisticalTestResultType"), exports);
|
|
111
105
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC;AACrC,4DAAyC;AACzC,8DAA2C;AAC3C,kEAA+C;AAC/C,gEAA6C;AAC7C,uEAAoD;AACpD,2DAAwC;AACxC,oDAAiC;AACjC,kEAA+C;AAC/C,qEAAkD;AAClD,uEAAoD;AACpD,4DAAyC;AACzC,0DAAuC;AACvC,wDAAqC;AACrC,oEAAiD;AACjD,2DAAwC;AACxC,0DAAuC;AACvC,sEAAmD;AACnD,yDAAsC;AACtC,8DAA2C;AAC3C,kEAA+C;AAC/C,8EAA2D;AAC3D,oEAAiD;AACjD,gFAA6D;AAC7D,wEAAqD;AACrD,uEAAoD;AACpD,mEAAgD;AAChD,uEAAoD;AACpD,sEAAmD;AACnD,qEAAkD;AAClD,gEAA6C;AAC7C,6DAA0C;AAC1C,yDAAsC;AACtC,sDAAmC;AACnC,wDAAqC;AACrC,qDAAkC;AAClC,+CAA4B;AAC5B,gEAA6C;AAC7C,+DAA4C;AAC5C,sDAAmC;AACnC,8DAA2C;AAC3C,yEAAsD;AACtD,2DAAwC;AACxC,yEAAsD;AACtD,oEAAiD;AACjD,oEAAiD;AACjD,qEAAkD;AAClD,gEAA6C;AAC7C,yEAAsD;AACtD,qDAAkC;AAClC,mEAAgD;AAChD,iEAA8C;AAC9C,8DAA2C;AAC3C,8DAA2C;AAC3C,qEAAkD;AAClD,oEAAiD;AACjD,iEAA8C;AAC9C,8EAA2D;AAC3D,gDAA6B;AAC7B,kFAA+D;AAC/D,2EAAwD;AACxD,sDAAmC;AACnC,qEAAkD;AAClD,qEAAkD;AAClD,yDAAsC;AACtC,iEAA8C;AAC9C,+DAA4C;AAC5C,2DAAwC;AACxC,mEAAgD;AAChD,8DAA2C;AAC3C,2DAAwC;AACxC,wEAAqD;AACrD,4EAAyD;AACzD,wDAAqC;AACrC,oEAAiD;AACjD,0EAAuD;AACvD,gEAA6C;AAC7C,kFAA+D;AAC/D,sEAAmD;AACnD,4DAAyC;AACzC,iEAA8C;AAC9C,iEAA8C;AAC9C,+DAA4C;AAC5C,4DAAyC;AACzC,+DAA4C;AAC5C,yDAAsC;AACtC,0EAAuD;AACvD,8EAA2D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nlptoolkit-classification",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Classification Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,14 +19,15 @@
|
|
|
19
19
|
"homepage": "https://github.com/StarlangSoftware/Classification-Js#readme",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/mocha": "^9.0.0",
|
|
22
|
+
"@types/node": "^25.2.3",
|
|
22
23
|
"mocha": "^9.1.3",
|
|
23
24
|
"ts-node": "^10.4.0",
|
|
24
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^5.9.3"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"nlptoolkit-datastructure": "^1.0.
|
|
28
|
-
"nlptoolkit-math": "^1.0.
|
|
29
|
-
"nlptoolkit-sampling": "^1.0.
|
|
30
|
-
"nlptoolkit-util": "^1.0.
|
|
28
|
+
"nlptoolkit-datastructure": "^1.0.9",
|
|
29
|
+
"nlptoolkit-math": "^1.0.7",
|
|
30
|
+
"nlptoolkit-sampling": "^1.0.5",
|
|
31
|
+
"nlptoolkit-util": "^1.0.12"
|
|
31
32
|
}
|
|
32
33
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"outDir": "dist",
|
|
4
|
+
"module": "nodeNext",
|
|
5
5
|
"sourceMap": true,
|
|
6
6
|
"noImplicitAny": true,
|
|
7
7
|
"removeComments": false,
|
|
8
|
-
"
|
|
8
|
+
"declaration": true,
|
|
9
9
|
},
|
|
10
10
|
"exclude": [
|
|
11
|
+
"tests",
|
|
11
12
|
"node_modules",
|
|
12
13
|
"dist"
|
|
13
14
|
]
|
package/source/tsconfig.json
DELETED