deepbox 0.1.0 → 0.2.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/LICENSE +1 -1
- package/README.md +39 -37
- package/dist/{CSRMatrix-KzNt6QpS.d.ts → CSRMatrix-B7XtUAZO.d.cts} +3 -3
- package/dist/{CSRMatrix-CwGwQRea.d.cts → CSRMatrix-CtD23fRM.d.ts} +3 -3
- package/dist/{Tensor-BQLk1ltW.d.cts → Tensor-BORFp_zt.d.ts} +27 -7
- package/dist/{Tensor-g8mUClel.d.ts → Tensor-fxBg-TFZ.d.cts} +27 -7
- package/dist/{chunk-FJYLIGJX.js → chunk-3AX37GPK.js} +33 -7
- package/dist/chunk-3AX37GPK.js.map +1 -0
- package/dist/{chunk-PR647I7R.js → chunk-3YFEYDHN.js} +21 -4
- package/dist/chunk-3YFEYDHN.js.map +1 -0
- package/dist/{chunk-XMWVME2W.js → chunk-6SX26MAJ.js} +4 -4
- package/dist/{chunk-XMWVME2W.js.map → chunk-6SX26MAJ.js.map} +1 -1
- package/dist/{chunk-C4PKXY74.cjs → chunk-6X7XFNDO.cjs} +94 -77
- package/dist/chunk-6X7XFNDO.cjs.map +1 -0
- package/dist/{chunk-6AE5FKKQ.cjs → chunk-724CXHFH.cjs} +1211 -919
- package/dist/chunk-724CXHFH.cjs.map +1 -0
- package/dist/{chunk-AU7XHGKJ.js → chunk-AJTKVBY5.js} +4 -4
- package/dist/{chunk-AU7XHGKJ.js.map → chunk-AJTKVBY5.js.map} +1 -1
- package/dist/{chunk-ZB75FESB.cjs → chunk-AV6WGSYX.cjs} +130 -104
- package/dist/chunk-AV6WGSYX.cjs.map +1 -0
- package/dist/{chunk-ZLW62TJG.cjs → chunk-BWOSU234.cjs} +142 -141
- package/dist/chunk-BWOSU234.cjs.map +1 -0
- package/dist/{chunk-4S73VUBD.js → chunk-CZOMBUI7.js} +3 -3
- package/dist/chunk-CZOMBUI7.js.map +1 -0
- package/dist/{chunk-QERHVCHC.cjs → chunk-EUZHJDZ6.cjs} +419 -364
- package/dist/chunk-EUZHJDZ6.cjs.map +1 -0
- package/dist/{chunk-AD436M45.js → chunk-G2G55ATL.js} +120 -58
- package/dist/chunk-G2G55ATL.js.map +1 -0
- package/dist/{chunk-5R4S63PF.js → chunk-G3WNLNYS.js} +119 -64
- package/dist/chunk-G3WNLNYS.js.map +1 -0
- package/dist/{chunk-XEG44RF6.cjs → chunk-G7KXZHG6.cjs} +105 -95
- package/dist/chunk-G7KXZHG6.cjs.map +1 -0
- package/dist/{chunk-MLBMYKCG.js → chunk-H3JR7SV2.js} +255 -113
- package/dist/chunk-H3JR7SV2.js.map +1 -0
- package/dist/{chunk-PHV2DKRS.cjs → chunk-HDKMIG6E.cjs} +107 -107
- package/dist/{chunk-PHV2DKRS.cjs.map → chunk-HDKMIG6E.cjs.map} +1 -1
- package/dist/{chunk-ALS7ETWZ.cjs → chunk-HI2EZHCJ.cjs} +111 -102
- package/dist/chunk-HI2EZHCJ.cjs.map +1 -0
- package/dist/{chunk-OX6QXFMV.cjs → chunk-IT4BZUYE.cjs} +490 -428
- package/dist/chunk-IT4BZUYE.cjs.map +1 -0
- package/dist/{chunk-E3EU5FZO.cjs → chunk-JTZPRV6E.cjs} +123 -123
- package/dist/{chunk-E3EU5FZO.cjs.map → chunk-JTZPRV6E.cjs.map} +1 -1
- package/dist/{chunk-PL7TAYKI.js → chunk-K2L5C5YH.js} +8 -7
- package/dist/chunk-K2L5C5YH.js.map +1 -0
- package/dist/{chunk-BCR7G3A6.js → chunk-KCF6P34A.js} +356 -64
- package/dist/chunk-KCF6P34A.js.map +1 -0
- package/dist/{chunk-ZXKBDFP3.js → chunk-LZHVHD62.js} +15 -6
- package/dist/chunk-LZHVHD62.js.map +1 -0
- package/dist/{chunk-LWECRCW2.cjs → chunk-MTJF52AJ.cjs} +141 -141
- package/dist/{chunk-LWECRCW2.cjs.map → chunk-MTJF52AJ.cjs.map} +1 -1
- package/dist/{chunk-B5TNKUEY.js → chunk-NDDTUFKK.js} +16 -6
- package/dist/chunk-NDDTUFKK.js.map +1 -0
- package/dist/{chunk-DWZY6PIP.cjs → chunk-NOQI6OFL.cjs} +615 -473
- package/dist/chunk-NOQI6OFL.cjs.map +1 -0
- package/dist/{chunk-F3JWBINJ.js → chunk-OEXDJFHA.js} +4 -4
- package/dist/{chunk-F3JWBINJ.js.map → chunk-OEXDJFHA.js.map} +1 -1
- package/dist/{chunk-JSCDE774.cjs → chunk-Z6BGACIH.cjs} +3 -3
- package/dist/chunk-Z6BGACIH.cjs.map +1 -0
- package/dist/core/index.cjs +50 -50
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/dataframe/index.cjs +6 -6
- package/dist/dataframe/index.d.cts +3 -3
- package/dist/dataframe/index.d.ts +3 -3
- package/dist/dataframe/index.js +3 -3
- package/dist/datasets/index.cjs +34 -34
- package/dist/datasets/index.d.cts +3 -3
- package/dist/datasets/index.d.ts +3 -3
- package/dist/datasets/index.js +3 -3
- package/dist/{index-C1mfVYoo.d.ts → index-B18dHc8q.d.ts} +81 -46
- package/dist/{index-GFAVyOWO.d.ts → index-BHHX0qTY.d.cts} +14 -12
- package/dist/{index-tk4lSYod.d.ts → index-BI6QOUvV.d.ts} +106 -80
- package/dist/{index-DIp_RrRt.d.ts → index-BKvK21lf.d.ts} +13 -35
- package/dist/{index-BJY2SI4i.d.ts → index-BL8jLf3K.d.cts} +12 -11
- package/dist/{index-Cn3SdB0O.d.ts → index-BNbX167d.d.cts} +16 -10
- package/dist/{index-BWGhrDlr.d.ts → index-BT2ofL7Z.d.cts} +35 -35
- package/dist/{index-BbA2Gxfl.d.ts → index-BqcfIcL4.d.ts} +15 -15
- package/dist/{index-ZtI1Iy4L.d.ts → index-BrgrECM2.d.ts} +41 -38
- package/dist/{index-CDw5CnOU.d.ts → index-BtYKI9yJ.d.ts} +10 -8
- package/dist/{index-DIT_OO9C.d.cts → index-C7nLsAOC.d.cts} +10 -8
- package/dist/{index-D9Loo1_A.d.cts → index-CNj2Mxwf.d.cts} +81 -46
- package/dist/{index-DmEg_LCm.d.cts → index-CYlxeNW1.d.cts} +5 -3
- package/dist/{index-D61yaSMY.d.cts → index-CiTd61a5.d.ts} +12 -11
- package/dist/{index-BndMbqsM.d.ts → index-Cjnn0KeN.d.cts} +35 -21
- package/dist/{index-9oQx1HgV.d.cts → index-CkGGAn69.d.cts} +41 -38
- package/dist/{index-74AB8Cyh.d.cts → index-D4URSgqA.d.ts} +16 -10
- package/dist/{index-DoPWVxPo.d.cts → index-D4pn5zLT.d.ts} +35 -21
- package/dist/{index-DuCxd-8d.d.ts → index-D9ztTlDr.d.ts} +60 -42
- package/dist/{index-BgHYAoSS.d.cts → index-DF28ZPB5.d.cts} +60 -42
- package/dist/{index-eJgeni9c.d.cts → index-DLdiQzf0.d.cts} +106 -80
- package/dist/{index-WHQLn0e8.d.cts → index-DN4omPQw.d.ts} +35 -35
- package/dist/{index-CrqLlS-a.d.ts → index-DUnFq1WV.d.ts} +5 -3
- package/dist/{index-DbultU6X.d.cts → index-DgaYshkF.d.ts} +14 -12
- package/dist/{index-B_DK4FKY.d.cts → index-GUHYEhxs.d.cts} +13 -35
- package/dist/{index-CCvlwAmL.d.cts → index-TP--4irE.d.cts} +16 -14
- package/dist/{index-Dx42TZaY.d.ts → index-x0z_sanT.d.ts} +16 -14
- package/dist/{index-DyZ4QQf5.d.cts → index-xWH7ujWa.d.cts} +15 -15
- package/dist/index.cjs +26 -26
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +13 -13
- package/dist/linalg/index.cjs +22 -22
- package/dist/linalg/index.d.cts +3 -3
- package/dist/linalg/index.d.ts +3 -3
- package/dist/linalg/index.js +3 -3
- package/dist/metrics/index.cjs +40 -40
- package/dist/metrics/index.d.cts +3 -3
- package/dist/metrics/index.d.ts +3 -3
- package/dist/metrics/index.js +3 -3
- package/dist/ml/index.cjs +23 -23
- package/dist/ml/index.d.cts +3 -3
- package/dist/ml/index.d.ts +3 -3
- package/dist/ml/index.js +4 -4
- package/dist/ndarray/index.cjs +125 -125
- package/dist/ndarray/index.d.cts +5 -5
- package/dist/ndarray/index.d.ts +5 -5
- package/dist/ndarray/index.js +2 -2
- package/dist/nn/index.cjs +36 -36
- package/dist/nn/index.d.cts +6 -6
- package/dist/nn/index.d.ts +6 -6
- package/dist/nn/index.js +3 -3
- package/dist/optim/index.cjs +19 -19
- package/dist/optim/index.d.cts +4 -4
- package/dist/optim/index.d.ts +4 -4
- package/dist/optim/index.js +2 -2
- package/dist/plot/index.cjs +29 -29
- package/dist/plot/index.d.cts +6 -6
- package/dist/plot/index.d.ts +6 -6
- package/dist/plot/index.js +3 -3
- package/dist/preprocess/index.cjs +21 -21
- package/dist/preprocess/index.d.cts +4 -4
- package/dist/preprocess/index.d.ts +4 -4
- package/dist/preprocess/index.js +3 -3
- package/dist/random/index.cjs +19 -19
- package/dist/random/index.d.cts +3 -3
- package/dist/random/index.d.ts +3 -3
- package/dist/random/index.js +3 -3
- package/dist/stats/index.cjs +36 -36
- package/dist/stats/index.d.cts +3 -3
- package/dist/stats/index.d.ts +3 -3
- package/dist/stats/index.js +3 -3
- package/dist/{tensor-B96jjJLQ.d.cts → tensor-IlVTF0bz.d.cts} +16 -3
- package/dist/{tensor-B96jjJLQ.d.ts → tensor-IlVTF0bz.d.ts} +16 -3
- package/package.json +3 -2
- package/dist/chunk-4S73VUBD.js.map +0 -1
- package/dist/chunk-5R4S63PF.js.map +0 -1
- package/dist/chunk-6AE5FKKQ.cjs.map +0 -1
- package/dist/chunk-AD436M45.js.map +0 -1
- package/dist/chunk-ALS7ETWZ.cjs.map +0 -1
- package/dist/chunk-B5TNKUEY.js.map +0 -1
- package/dist/chunk-BCR7G3A6.js.map +0 -1
- package/dist/chunk-C4PKXY74.cjs.map +0 -1
- package/dist/chunk-DWZY6PIP.cjs.map +0 -1
- package/dist/chunk-FJYLIGJX.js.map +0 -1
- package/dist/chunk-JSCDE774.cjs.map +0 -1
- package/dist/chunk-MLBMYKCG.js.map +0 -1
- package/dist/chunk-OX6QXFMV.cjs.map +0 -1
- package/dist/chunk-PL7TAYKI.js.map +0 -1
- package/dist/chunk-PR647I7R.js.map +0 -1
- package/dist/chunk-QERHVCHC.cjs.map +0 -1
- package/dist/chunk-XEG44RF6.cjs.map +0 -1
- package/dist/chunk-ZB75FESB.cjs.map +0 -1
- package/dist/chunk-ZLW62TJG.cjs.map +0 -1
- package/dist/chunk-ZXKBDFP3.js.map +0 -1
package/dist/datasets/index.cjs
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkG7KXZHG6_cjs = require('../chunk-G7KXZHG6.cjs');
|
|
4
|
+
require('../chunk-724CXHFH.cjs');
|
|
5
|
+
require('../chunk-Z6BGACIH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "DataLoader", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkG7KXZHG6_cjs.DataLoader; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "loadBreastCancer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkG7KXZHG6_cjs.loadBreastCancer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "loadConcentricRings", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkG7KXZHG6_cjs.loadConcentricRings; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "loadCropYield", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkG7KXZHG6_cjs.loadCropYield; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "loadCustomerSegments", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkG7KXZHG6_cjs.loadCustomerSegments; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "loadDiabetes", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkG7KXZHG6_cjs.loadDiabetes; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "loadDigits", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkG7KXZHG6_cjs.loadDigits; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "loadEnergyEfficiency", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkG7KXZHG6_cjs.loadEnergyEfficiency; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "loadFitnessScores", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkG7KXZHG6_cjs.loadFitnessScores; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "loadFlowersExtended", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkG7KXZHG6_cjs.loadFlowersExtended; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "loadFruitQuality", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkG7KXZHG6_cjs.loadFruitQuality; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "loadGaussianIslands", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkG7KXZHG6_cjs.loadGaussianIslands; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "loadHousingMini", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkG7KXZHG6_cjs.loadHousingMini; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "loadIris", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkG7KXZHG6_cjs.loadIris; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "loadLeafShapes", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkG7KXZHG6_cjs.loadLeafShapes; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "loadLinnerud", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkG7KXZHG6_cjs.loadLinnerud; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "loadMoonsMulti", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkG7KXZHG6_cjs.loadMoonsMulti; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "loadPerfectlySeparable", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkG7KXZHG6_cjs.loadPerfectlySeparable; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "loadPlantGrowth", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkG7KXZHG6_cjs.loadPlantGrowth; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "loadSeedMorphology", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkG7KXZHG6_cjs.loadSeedMorphology; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "loadSensorStates", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkG7KXZHG6_cjs.loadSensorStates; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "loadSpiralArms", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkG7KXZHG6_cjs.loadSpiralArms; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "loadStudentPerformance", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkG7KXZHG6_cjs.loadStudentPerformance; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "loadTrafficConditions", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkG7KXZHG6_cjs.loadTrafficConditions; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "loadWeatherOutcomes", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkG7KXZHG6_cjs.loadWeatherOutcomes; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "makeBlobs", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkG7KXZHG6_cjs.makeBlobs; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "makeCircles", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkG7KXZHG6_cjs.makeCircles; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "makeClassification", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkG7KXZHG6_cjs.makeClassification; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "makeGaussianQuantiles", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkG7KXZHG6_cjs.makeGaussianQuantiles; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "makeMoons", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkG7KXZHG6_cjs.makeMoons; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "makeRegression", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkG7KXZHG6_cjs.makeRegression; }
|
|
132
132
|
});
|
|
133
133
|
//# sourceMappingURL=index.cjs.map
|
|
134
134
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as DataLoader, D as DataLoaderOptions, g as Dataset, l as loadBreastCancer, h as loadConcentricRings, j as loadCropYield, k as loadCustomerSegments, n as loadDiabetes, o as loadDigits, p as loadEnergyEfficiency, q as loadFitnessScores, r as loadFlowersExtended, s as loadFruitQuality, t as loadGaussianIslands, u as loadHousingMini, v as loadIris, w as loadLeafShapes, x as loadLinnerud, y as loadMoonsMulti, z as loadPerfectlySeparable, A as loadPlantGrowth, B as loadSeedMorphology, C as loadSensorStates, E as loadSpiralArms, F as loadStudentPerformance, G as loadTrafficConditions, H as loadWeatherOutcomes, m as makeBlobs, b as makeCircles, c as makeClassification, d as makeGaussianQuantiles, e as makeMoons, f as makeRegression } from '../index-
|
|
2
|
-
import '../Tensor-
|
|
3
|
-
import '../tensor-
|
|
1
|
+
export { a as DataLoader, D as DataLoaderOptions, g as Dataset, l as loadBreastCancer, h as loadConcentricRings, j as loadCropYield, k as loadCustomerSegments, n as loadDiabetes, o as loadDigits, p as loadEnergyEfficiency, q as loadFitnessScores, r as loadFlowersExtended, s as loadFruitQuality, t as loadGaussianIslands, u as loadHousingMini, v as loadIris, w as loadLeafShapes, x as loadLinnerud, y as loadMoonsMulti, z as loadPerfectlySeparable, A as loadPlantGrowth, B as loadSeedMorphology, C as loadSensorStates, E as loadSpiralArms, F as loadStudentPerformance, G as loadTrafficConditions, H as loadWeatherOutcomes, m as makeBlobs, b as makeCircles, c as makeClassification, d as makeGaussianQuantiles, e as makeMoons, f as makeRegression } from '../index-BL8jLf3K.cjs';
|
|
2
|
+
import '../Tensor-fxBg-TFZ.cjs';
|
|
3
|
+
import '../tensor-IlVTF0bz.cjs';
|
package/dist/datasets/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as DataLoader, D as DataLoaderOptions, g as Dataset, l as loadBreastCancer, h as loadConcentricRings, j as loadCropYield, k as loadCustomerSegments, n as loadDiabetes, o as loadDigits, p as loadEnergyEfficiency, q as loadFitnessScores, r as loadFlowersExtended, s as loadFruitQuality, t as loadGaussianIslands, u as loadHousingMini, v as loadIris, w as loadLeafShapes, x as loadLinnerud, y as loadMoonsMulti, z as loadPerfectlySeparable, A as loadPlantGrowth, B as loadSeedMorphology, C as loadSensorStates, E as loadSpiralArms, F as loadStudentPerformance, G as loadTrafficConditions, H as loadWeatherOutcomes, m as makeBlobs, b as makeCircles, c as makeClassification, d as makeGaussianQuantiles, e as makeMoons, f as makeRegression } from '../index-
|
|
2
|
-
import '../Tensor-
|
|
3
|
-
import '../tensor-
|
|
1
|
+
export { a as DataLoader, D as DataLoaderOptions, g as Dataset, l as loadBreastCancer, h as loadConcentricRings, j as loadCropYield, k as loadCustomerSegments, n as loadDiabetes, o as loadDigits, p as loadEnergyEfficiency, q as loadFitnessScores, r as loadFlowersExtended, s as loadFruitQuality, t as loadGaussianIslands, u as loadHousingMini, v as loadIris, w as loadLeafShapes, x as loadLinnerud, y as loadMoonsMulti, z as loadPerfectlySeparable, A as loadPlantGrowth, B as loadSeedMorphology, C as loadSensorStates, E as loadSpiralArms, F as loadStudentPerformance, G as loadTrafficConditions, H as loadWeatherOutcomes, m as makeBlobs, b as makeCircles, c as makeClassification, d as makeGaussianQuantiles, e as makeMoons, f as makeRegression } from '../index-CiTd61a5.js';
|
|
2
|
+
import '../Tensor-BORFp_zt.js';
|
|
3
|
+
import '../tensor-IlVTF0bz.js';
|
package/dist/datasets/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DataLoader, loadBreastCancer, loadConcentricRings, loadCropYield, loadCustomerSegments, loadDiabetes, loadDigits, loadEnergyEfficiency, loadFitnessScores, loadFlowersExtended, loadFruitQuality, loadGaussianIslands, loadHousingMini, loadIris, loadLeafShapes, loadLinnerud, loadMoonsMulti, loadPerfectlySeparable, loadPlantGrowth, loadSeedMorphology, loadSensorStates, loadSpiralArms, loadStudentPerformance, loadTrafficConditions, loadWeatherOutcomes, makeBlobs, makeCircles, makeClassification, makeGaussianQuantiles, makeMoons, makeRegression } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { DataLoader, loadBreastCancer, loadConcentricRings, loadCropYield, loadCustomerSegments, loadDiabetes, loadDigits, loadEnergyEfficiency, loadFitnessScores, loadFlowersExtended, loadFruitQuality, loadGaussianIslands, loadHousingMini, loadIris, loadLeafShapes, loadLinnerud, loadMoonsMulti, loadPerfectlySeparable, loadPlantGrowth, loadSeedMorphology, loadSensorStates, loadSpiralArms, loadStudentPerformance, loadTrafficConditions, loadWeatherOutcomes, makeBlobs, makeCircles, makeClassification, makeGaussianQuantiles, makeMoons, makeRegression } from '../chunk-NDDTUFKK.js';
|
|
2
|
+
import '../chunk-KCF6P34A.js';
|
|
3
|
+
import '../chunk-CZOMBUI7.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { T as Tensor } from './Tensor-
|
|
1
|
+
import { T as Tensor } from './Tensor-BORFp_zt.js';
|
|
2
|
+
import { S as Shape, c as ScalarDType } from './tensor-IlVTF0bz.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Base type for all estimators (models) in Deepbox.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
* Base estimator type for all ML models.
|
|
7
8
|
*
|
|
8
9
|
* @template FitParams - Type of parameters passed to fit method
|
|
9
10
|
*
|
|
10
11
|
* References:
|
|
11
|
-
* -
|
|
12
|
+
* - Deepbox ML: https://deepbox.dev/docs/ml-linear
|
|
12
13
|
*/
|
|
13
14
|
type Estimator<FitParams = void> = {
|
|
14
15
|
/**
|
|
@@ -238,7 +239,7 @@ type OutlierDetector = Estimator<void> & {
|
|
|
238
239
|
* // labels: [0, 0, 0, 1, 1, -1] (-1 = noise)
|
|
239
240
|
* ```
|
|
240
241
|
*
|
|
241
|
-
* @see {@link https://
|
|
242
|
+
* @see {@link https://deepbox.dev/docs/ml-clustering | Deepbox Clustering}
|
|
242
243
|
*/
|
|
243
244
|
declare class DBSCAN implements Clusterer {
|
|
244
245
|
private eps;
|
|
@@ -295,6 +296,13 @@ declare class DBSCAN implements Clusterer {
|
|
|
295
296
|
* @throws {NotFittedError} If the model has not been fitted
|
|
296
297
|
*/
|
|
297
298
|
get labels(): Tensor;
|
|
299
|
+
/**
|
|
300
|
+
* Number of clusters found (excluding noise).
|
|
301
|
+
*
|
|
302
|
+
* @returns Number of distinct clusters (labels >= 0)
|
|
303
|
+
* @throws {NotFittedError} If the model has not been fitted
|
|
304
|
+
*/
|
|
305
|
+
get nClusters(): number;
|
|
298
306
|
/**
|
|
299
307
|
* Get indices of core samples discovered during fitting.
|
|
300
308
|
*
|
|
@@ -352,8 +360,8 @@ declare class DBSCAN implements Clusterer {
|
|
|
352
360
|
* console.log('Centroids:', kmeans.clusterCenters);
|
|
353
361
|
* ```
|
|
354
362
|
*
|
|
355
|
-
* @see {@link https://
|
|
356
|
-
* @see {@link https://
|
|
363
|
+
* @see {@link https://deepbox.dev/docs/ml-clustering | Deepbox Clustering}
|
|
364
|
+
* @see {@link https://deepbox.dev/docs/ml-clustering | Deepbox Clustering}
|
|
357
365
|
*/
|
|
358
366
|
declare class KMeans implements Clusterer {
|
|
359
367
|
private nClusters;
|
|
@@ -482,8 +490,8 @@ declare class KMeans implements Clusterer {
|
|
|
482
490
|
* console.log('Explained variance ratio:', pca.explainedVarianceRatio);
|
|
483
491
|
* ```
|
|
484
492
|
*
|
|
485
|
-
* @see {@link https://
|
|
486
|
-
* @see {@link https://
|
|
493
|
+
* @see {@link https://deepbox.dev/docs/ml-decomposition | Deepbox Dimensionality Reduction}
|
|
494
|
+
* @see {@link https://deepbox.dev/docs/ml-decomposition | Deepbox Dimensionality Reduction}
|
|
487
495
|
*/
|
|
488
496
|
declare class PCA implements Transformer {
|
|
489
497
|
private readonly nComponents?;
|
|
@@ -590,7 +598,7 @@ declare class PCA implements Transformer {
|
|
|
590
598
|
* const predictions = gbr.predict(X);
|
|
591
599
|
* ```
|
|
592
600
|
*
|
|
593
|
-
* @see {@link https://
|
|
601
|
+
* @see {@link https://deepbox.dev/docs/ml-ensemble | Deepbox Ensemble Methods}
|
|
594
602
|
*/
|
|
595
603
|
declare class GradientBoostingRegressor implements Regressor {
|
|
596
604
|
/** Number of boosting stages (trees) */
|
|
@@ -669,8 +677,10 @@ declare class GradientBoostingRegressor implements Regressor {
|
|
|
669
677
|
/**
|
|
670
678
|
* Gradient Boosting Classifier.
|
|
671
679
|
*
|
|
672
|
-
* Uses gradient boosting with shallow regression trees for
|
|
673
|
-
*
|
|
680
|
+
* Uses gradient boosting with shallow regression trees for classification.
|
|
681
|
+
* Supports both binary and multiclass classification.
|
|
682
|
+
* - Binary: optimizes log loss using sigmoid function.
|
|
683
|
+
* - Multiclass: uses One-vs-Rest (OvR) strategy, training one binary model per class.
|
|
674
684
|
*
|
|
675
685
|
* @example
|
|
676
686
|
* ```ts
|
|
@@ -685,7 +695,7 @@ declare class GradientBoostingRegressor implements Regressor {
|
|
|
685
695
|
* const predictions = gbc.predict(X);
|
|
686
696
|
* ```
|
|
687
697
|
*
|
|
688
|
-
* @see {@link https://
|
|
698
|
+
* @see {@link https://deepbox.dev/docs/ml-ensemble | Deepbox Ensemble Methods}
|
|
689
699
|
*/
|
|
690
700
|
declare class GradientBoostingClassifier implements Classifier {
|
|
691
701
|
/** Number of boosting stages */
|
|
@@ -696,10 +706,10 @@ declare class GradientBoostingClassifier implements Classifier {
|
|
|
696
706
|
private maxDepth;
|
|
697
707
|
/** Minimum samples to split */
|
|
698
708
|
private minSamplesSplit;
|
|
699
|
-
/**
|
|
700
|
-
private
|
|
701
|
-
/**
|
|
702
|
-
private
|
|
709
|
+
/** Per-class arrays of weak learners (OvR for multiclass, single for binary) */
|
|
710
|
+
private estimatorsPerClass;
|
|
711
|
+
/** Per-class initial log-odds predictions */
|
|
712
|
+
private initPredictions;
|
|
703
713
|
/** Number of features */
|
|
704
714
|
private nFeatures;
|
|
705
715
|
/** Unique class labels */
|
|
@@ -712,19 +722,29 @@ declare class GradientBoostingClassifier implements Classifier {
|
|
|
712
722
|
readonly maxDepth?: number;
|
|
713
723
|
readonly minSamplesSplit?: number;
|
|
714
724
|
});
|
|
725
|
+
/**
|
|
726
|
+
* Fit a single binary boosting ensemble.
|
|
727
|
+
* Trains nEstimators regression trees to optimize log loss for a binary target.
|
|
728
|
+
*/
|
|
729
|
+
private fitBinary;
|
|
730
|
+
/**
|
|
731
|
+
* Compute raw scores for a single binary ensemble.
|
|
732
|
+
*/
|
|
733
|
+
private predictRawBinary;
|
|
715
734
|
/**
|
|
716
735
|
* Fit the gradient boosting classifier on training data.
|
|
717
736
|
*
|
|
718
737
|
* Builds an additive model by sequentially fitting regression trees
|
|
719
738
|
* to the pseudo-residuals (gradient of log loss).
|
|
739
|
+
* Supports binary (2 classes) and multiclass (>2 classes via OvR).
|
|
720
740
|
*
|
|
721
741
|
* @param X - Training data of shape (n_samples, n_features)
|
|
722
|
-
* @param y - Target class labels of shape (n_samples,). Must contain
|
|
742
|
+
* @param y - Target class labels of shape (n_samples,). Must contain at least 2 classes.
|
|
723
743
|
* @returns this - The fitted estimator
|
|
724
744
|
* @throws {ShapeError} If X is not 2D or y is not 1D
|
|
725
745
|
* @throws {ShapeError} If X and y have different number of samples
|
|
726
746
|
* @throws {DataValidationError} If X or y contain NaN/Inf values
|
|
727
|
-
* @throws {InvalidParameterError} If y does not contain
|
|
747
|
+
* @throws {InvalidParameterError} If y does not contain at least 2 classes
|
|
728
748
|
*/
|
|
729
749
|
fit(X: Tensor, y: Tensor): this;
|
|
730
750
|
/**
|
|
@@ -740,11 +760,10 @@ declare class GradientBoostingClassifier implements Classifier {
|
|
|
740
760
|
/**
|
|
741
761
|
* Predict class probabilities for samples in X.
|
|
742
762
|
*
|
|
743
|
-
* Returns a matrix of shape (n_samples,
|
|
744
|
-
* [P(class_0), P(class_1)].
|
|
763
|
+
* Returns a matrix of shape (n_samples, n_classes).
|
|
745
764
|
*
|
|
746
765
|
* @param X - Samples of shape (n_samples, n_features)
|
|
747
|
-
* @returns Class probability matrix of shape (n_samples,
|
|
766
|
+
* @returns Class probability matrix of shape (n_samples, n_classes)
|
|
748
767
|
* @throws {NotFittedError} If the model has not been fitted
|
|
749
768
|
* @throws {ShapeError} If X has wrong dimensions or feature count
|
|
750
769
|
* @throws {DataValidationError} If X contains NaN/Inf values
|
|
@@ -1041,7 +1060,7 @@ declare class LinearRegression implements Regressor {
|
|
|
1041
1060
|
* @throws {ShapeError} If X has wrong dimensions or feature count
|
|
1042
1061
|
* @throws {DataValidationError} If X contains NaN/Inf values
|
|
1043
1062
|
*/
|
|
1044
|
-
predict(X: Tensor): Tensor
|
|
1063
|
+
predict(X: Tensor): Tensor<Shape, ScalarDType>;
|
|
1045
1064
|
/**
|
|
1046
1065
|
* Return the coefficient of determination R^2 of the prediction.
|
|
1047
1066
|
*
|
|
@@ -1434,7 +1453,7 @@ declare class Ridge implements Regressor {
|
|
|
1434
1453
|
* const embedding = tsne.fitTransform(X);
|
|
1435
1454
|
* ```
|
|
1436
1455
|
*
|
|
1437
|
-
* @see {@link https://
|
|
1456
|
+
* @see {@link https://deepbox.dev/docs/ml-manifold | Deepbox Manifold Learning}
|
|
1438
1457
|
* @see van der Maaten, L.J.P.; Hinton, G.E. (2008). "Visualizing High-Dimensional Data Using t-SNE"
|
|
1439
1458
|
*/
|
|
1440
1459
|
declare class TSNE {
|
|
@@ -1543,6 +1562,14 @@ declare class TSNE {
|
|
|
1543
1562
|
* Fit the model (same as fitTransform for t-SNE).
|
|
1544
1563
|
*/
|
|
1545
1564
|
fit(X: Tensor): this;
|
|
1565
|
+
/**
|
|
1566
|
+
* Return the fitted embedding. For t-SNE, transform is equivalent to
|
|
1567
|
+
* returning the already-computed embedding (t-SNE is non-parametric).
|
|
1568
|
+
*
|
|
1569
|
+
* @param _X - Ignored, present for API compatibility
|
|
1570
|
+
* @returns Low-dimensional embedding of shape (n_samples, n_components)
|
|
1571
|
+
*/
|
|
1572
|
+
transform(_X?: Tensor): Tensor;
|
|
1546
1573
|
/**
|
|
1547
1574
|
* Get the embedding.
|
|
1548
1575
|
*/
|
|
@@ -1585,8 +1612,8 @@ declare class TSNE {
|
|
|
1585
1612
|
* const predictions = nb.predict(tensor([[2.5, 3.5]]));
|
|
1586
1613
|
* ```
|
|
1587
1614
|
*
|
|
1588
|
-
* @see {@link https://
|
|
1589
|
-
* @see {@link https://
|
|
1615
|
+
* @see {@link https://deepbox.dev/docs/ml-naive-bayes | Deepbox Naive Bayes}
|
|
1616
|
+
* @see {@link https://deepbox.dev/docs/ml-naive-bayes | Deepbox Naive Bayes}
|
|
1590
1617
|
*/
|
|
1591
1618
|
declare class GaussianNB implements Classifier {
|
|
1592
1619
|
private readonly varSmoothing;
|
|
@@ -1737,8 +1764,8 @@ declare abstract class KNeighborsBase {
|
|
|
1737
1764
|
* const predictions = knn.predict(tensor([[1.5, 1.5]]));
|
|
1738
1765
|
* ```
|
|
1739
1766
|
*
|
|
1740
|
-
* @see {@link https://
|
|
1741
|
-
* @see {@link https://
|
|
1767
|
+
* @see {@link https://deepbox.dev/docs/ml-neighbors | Deepbox Nearest Neighbors}
|
|
1768
|
+
* @see {@link https://deepbox.dev/docs/ml-neighbors | Deepbox Nearest Neighbors}
|
|
1742
1769
|
*/
|
|
1743
1770
|
declare class KNeighborsClassifier extends KNeighborsBase implements Classifier {
|
|
1744
1771
|
/**
|
|
@@ -1805,7 +1832,7 @@ declare class KNeighborsClassifier extends KNeighborsBase implements Classifier
|
|
|
1805
1832
|
* const predictions = knn.predict(tensor([[1.5]]));
|
|
1806
1833
|
* ```
|
|
1807
1834
|
*
|
|
1808
|
-
* @see {@link https://
|
|
1835
|
+
* @see {@link https://deepbox.dev/docs/ml-neighbors | Deepbox Nearest Neighbors}
|
|
1809
1836
|
*/
|
|
1810
1837
|
declare class KNeighborsRegressor extends KNeighborsBase implements Regressor {
|
|
1811
1838
|
/**
|
|
@@ -1868,7 +1895,7 @@ declare class KNeighborsRegressor extends KNeighborsBase implements Regressor {
|
|
|
1868
1895
|
* const predictions = svm.predict(X);
|
|
1869
1896
|
* ```
|
|
1870
1897
|
*
|
|
1871
|
-
* @see {@link https://
|
|
1898
|
+
* @see {@link https://deepbox.dev/docs/ml-svm | Deepbox SVM}
|
|
1872
1899
|
*/
|
|
1873
1900
|
declare class LinearSVC implements Classifier {
|
|
1874
1901
|
/** Regularization parameter (inverse of regularization strength) */
|
|
@@ -1877,13 +1904,13 @@ declare class LinearSVC implements Classifier {
|
|
|
1877
1904
|
private readonly maxIter;
|
|
1878
1905
|
/** Tolerance for stopping criterion */
|
|
1879
1906
|
private readonly tol;
|
|
1880
|
-
/**
|
|
1881
|
-
private
|
|
1882
|
-
/**
|
|
1883
|
-
private
|
|
1907
|
+
/** Per-class weight vectors (OvR for multiclass, single for binary) */
|
|
1908
|
+
private weightsPerClass;
|
|
1909
|
+
/** Per-class bias terms */
|
|
1910
|
+
private biasPerClass;
|
|
1884
1911
|
/** Number of features seen during fit */
|
|
1885
1912
|
private nFeatures;
|
|
1886
|
-
/** Unique class labels
|
|
1913
|
+
/** Unique class labels */
|
|
1887
1914
|
private classLabels;
|
|
1888
1915
|
/** Whether the model has been fitted */
|
|
1889
1916
|
private fitted;
|
|
@@ -1900,19 +1927,27 @@ declare class LinearSVC implements Classifier {
|
|
|
1900
1927
|
readonly maxIter?: number;
|
|
1901
1928
|
readonly tol?: number;
|
|
1902
1929
|
});
|
|
1930
|
+
/**
|
|
1931
|
+
* Fit a single binary SVM using sub-gradient descent on hinge loss.
|
|
1932
|
+
* Maps labels to {-1, +1} and returns learned weights + bias.
|
|
1933
|
+
*/
|
|
1934
|
+
private fitBinary;
|
|
1935
|
+
/**
|
|
1936
|
+
* Compute decision value for a single binary classifier.
|
|
1937
|
+
*/
|
|
1938
|
+
private decisionBinary;
|
|
1903
1939
|
/**
|
|
1904
1940
|
* Fit the SVM classifier using sub-gradient descent.
|
|
1905
1941
|
*
|
|
1906
|
-
*
|
|
1907
|
-
* Objective: minimize (1/2)||w||² + C * Σmax(0, 1 - y_i(w · x_i + b))
|
|
1942
|
+
* Supports both binary and multiclass classification (via OvR).
|
|
1908
1943
|
*
|
|
1909
1944
|
* @param X - Training data of shape (n_samples, n_features)
|
|
1910
|
-
* @param y - Target labels of shape (n_samples,). Must contain
|
|
1945
|
+
* @param y - Target labels of shape (n_samples,). Must contain at least 2 classes.
|
|
1911
1946
|
* @returns this - The fitted estimator
|
|
1912
1947
|
* @throws {ShapeError} If X is not 2D or y is not 1D
|
|
1913
1948
|
* @throws {ShapeError} If X and y have different number of samples
|
|
1914
1949
|
* @throws {DataValidationError} If X or y contain NaN/Inf values
|
|
1915
|
-
* @throws {InvalidParameterError} If y does not contain
|
|
1950
|
+
* @throws {InvalidParameterError} If y does not contain at least 2 classes
|
|
1916
1951
|
*/
|
|
1917
1952
|
fit(X: Tensor, y: Tensor): this;
|
|
1918
1953
|
/**
|
|
@@ -1954,12 +1989,12 @@ declare class LinearSVC implements Classifier {
|
|
|
1954
1989
|
*/
|
|
1955
1990
|
get coef(): Tensor;
|
|
1956
1991
|
/**
|
|
1957
|
-
* Get the bias
|
|
1992
|
+
* Get the bias terms.
|
|
1958
1993
|
*
|
|
1959
|
-
* @returns Bias
|
|
1994
|
+
* @returns Bias values as tensor
|
|
1960
1995
|
* @throws {NotFittedError} If the model has not been fitted
|
|
1961
1996
|
*/
|
|
1962
|
-
get intercept():
|
|
1997
|
+
get intercept(): Tensor;
|
|
1963
1998
|
/**
|
|
1964
1999
|
* Get hyperparameters for this estimator.
|
|
1965
2000
|
*
|
|
@@ -1992,7 +2027,7 @@ declare class LinearSVC implements Classifier {
|
|
|
1992
2027
|
* const predictions = svr.predict(X);
|
|
1993
2028
|
* ```
|
|
1994
2029
|
*
|
|
1995
|
-
* @see {@link https://
|
|
2030
|
+
* @see {@link https://deepbox.dev/docs/ml-svm | Deepbox SVM}
|
|
1996
2031
|
*/
|
|
1997
2032
|
declare class LinearSVR implements Regressor {
|
|
1998
2033
|
/** Regularization parameter */
|
|
@@ -2088,7 +2123,7 @@ declare class LinearSVR implements Regressor {
|
|
|
2088
2123
|
* const predictions = clf.predict(X);
|
|
2089
2124
|
* ```
|
|
2090
2125
|
*
|
|
2091
|
-
* @see {@link https://
|
|
2126
|
+
* @see {@link https://deepbox.dev/docs/ml-tree | Deepbox Decision Trees}
|
|
2092
2127
|
*/
|
|
2093
2128
|
declare class DecisionTreeClassifier implements Classifier {
|
|
2094
2129
|
private maxDepth;
|
|
@@ -2182,7 +2217,7 @@ declare class DecisionTreeClassifier implements Classifier {
|
|
|
2182
2217
|
*
|
|
2183
2218
|
* Uses MSE reduction to find optimal splits for regression tasks.
|
|
2184
2219
|
*
|
|
2185
|
-
* @see {@link https://
|
|
2220
|
+
* @see {@link https://deepbox.dev/docs/ml-tree | Deepbox Decision Trees}
|
|
2186
2221
|
*/
|
|
2187
2222
|
declare class DecisionTreeRegressor implements Regressor {
|
|
2188
2223
|
private maxDepth;
|
|
@@ -2275,7 +2310,7 @@ declare class DecisionTreeRegressor implements Regressor {
|
|
|
2275
2310
|
* const predictions = clf.predict(X_test);
|
|
2276
2311
|
* ```
|
|
2277
2312
|
*
|
|
2278
|
-
* @see {@link https://
|
|
2313
|
+
* @see {@link https://deepbox.dev/docs/ml-tree | Deepbox Decision Trees}
|
|
2279
2314
|
*/
|
|
2280
2315
|
declare class RandomForestClassifier implements Classifier {
|
|
2281
2316
|
private readonly nEstimators;
|
|
@@ -2389,7 +2424,7 @@ declare class RandomForestClassifier implements Classifier {
|
|
|
2389
2424
|
* const predictions = reg.predict(X_test);
|
|
2390
2425
|
* ```
|
|
2391
2426
|
*
|
|
2392
|
-
* @see {@link https://
|
|
2427
|
+
* @see {@link https://deepbox.dev/docs/ml-tree | Deepbox Decision Trees}
|
|
2393
2428
|
*/
|
|
2394
2429
|
declare class RandomForestRegressor implements Regressor {
|
|
2395
2430
|
private readonly nEstimators;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Axis } from './tensor-
|
|
2
|
-
import { T as Tensor } from './Tensor-
|
|
1
|
+
import { A as Axis } from './tensor-IlVTF0bz.cjs';
|
|
2
|
+
import { T as Tensor } from './Tensor-fxBg-TFZ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Data structure for DataFrame initialization.
|
|
@@ -15,6 +15,7 @@ import { T as Tensor } from './Tensor-g8mUClel.js';
|
|
|
15
15
|
* };
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
+
type DataValue = number | string | boolean | null | undefined;
|
|
18
19
|
type DataFrameData = Record<string, unknown[]>;
|
|
19
20
|
/**
|
|
20
21
|
* Configuration options for DataFrame construction.
|
|
@@ -64,7 +65,7 @@ type AggregateFunction = "sum" | "mean" | "median" | "min" | "max" | "std" | "va
|
|
|
64
65
|
* - An array of index labels (can be strings or numbers)
|
|
65
66
|
* - An optional name
|
|
66
67
|
*
|
|
67
|
-
*
|
|
68
|
+
* A one-dimensional labeled array. @see { https://deepbox.dev/docs/dataframe-series | Deepbox Series}
|
|
68
69
|
*
|
|
69
70
|
* @template T - The type of data stored in the Series
|
|
70
71
|
*
|
|
@@ -80,7 +81,7 @@ type AggregateFunction = "sum" | "mean" | "median" | "min" | "max" | "std" | "va
|
|
|
80
81
|
* });
|
|
81
82
|
* ```
|
|
82
83
|
*
|
|
83
|
-
* @see {@link https://
|
|
84
|
+
* @see {@link https://deepbox.dev/docs/dataframe-series | Deepbox Series}
|
|
84
85
|
*/
|
|
85
86
|
declare class Series<T = unknown> {
|
|
86
87
|
private _data;
|
|
@@ -435,7 +436,7 @@ declare class Series<T = unknown> {
|
|
|
435
436
|
* - Columns (variables) identified by column names
|
|
436
437
|
* - Data stored in a columnar format for efficient access
|
|
437
438
|
*
|
|
438
|
-
*
|
|
439
|
+
* A tabular data structure with labeled columns. @see { https://deepbox.dev/docs/dataframe-overview | Deepbox DataFrame}
|
|
439
440
|
*
|
|
440
441
|
* @example
|
|
441
442
|
* ```ts
|
|
@@ -451,7 +452,7 @@ declare class Series<T = unknown> {
|
|
|
451
452
|
* console.log(df.columns); // ['name', 'age', 'score']
|
|
452
453
|
* ```
|
|
453
454
|
*
|
|
454
|
-
* @see {@link https://
|
|
455
|
+
* @see {@link https://deepbox.dev/docs/dataframe-overview | Deepbox DataFrame}
|
|
455
456
|
*/
|
|
456
457
|
declare class DataFrame {
|
|
457
458
|
private _data;
|
|
@@ -588,7 +589,7 @@ declare class DataFrame {
|
|
|
588
589
|
* // DataFrame with Bob and Carol
|
|
589
590
|
* ```
|
|
590
591
|
*/
|
|
591
|
-
filter(predicate: (row: Record<string,
|
|
592
|
+
filter(predicate: (row: Record<string, any>) => boolean): DataFrame;
|
|
592
593
|
/**
|
|
593
594
|
* Select a subset of columns.
|
|
594
595
|
*
|
|
@@ -687,11 +688,11 @@ declare class DataFrame {
|
|
|
687
688
|
* // Result: Alice, Bob, Charlie (Charlie has null for product)
|
|
688
689
|
* ```
|
|
689
690
|
*
|
|
690
|
-
* @see {@link https://
|
|
691
|
+
* @see {@link https://deepbox.dev/docs/dataframe-overview | Deepbox DataFrame}
|
|
691
692
|
*/
|
|
692
693
|
join(other: DataFrame, on: string, how?: "inner" | "left" | "right" | "outer"): DataFrame;
|
|
693
694
|
/**
|
|
694
|
-
* Merge with another DataFrame using
|
|
695
|
+
* Merge with another DataFrame using SQL-style merge.
|
|
695
696
|
*
|
|
696
697
|
* More flexible than join() - supports different column names for join keys.
|
|
697
698
|
* Uses hash join algorithm for O(n + m) complexity.
|
|
@@ -726,7 +727,7 @@ declare class DataFrame {
|
|
|
726
727
|
* });
|
|
727
728
|
* ```
|
|
728
729
|
*
|
|
729
|
-
* @see {@link https://
|
|
730
|
+
* @see {@link https://deepbox.dev/docs/dataframe-overview | Deepbox DataFrame}
|
|
730
731
|
*/
|
|
731
732
|
merge(other: DataFrame, options?: {
|
|
732
733
|
readonly on?: string;
|
|
@@ -1417,11 +1418,12 @@ type index_DataFrameData = DataFrameData;
|
|
|
1417
1418
|
type index_DataFrameGroupBy = DataFrameGroupBy;
|
|
1418
1419
|
declare const index_DataFrameGroupBy: typeof DataFrameGroupBy;
|
|
1419
1420
|
type index_DataFrameOptions = DataFrameOptions;
|
|
1421
|
+
type index_DataValue = DataValue;
|
|
1420
1422
|
type index_Series<T = unknown> = Series<T>;
|
|
1421
1423
|
declare const index_Series: typeof Series;
|
|
1422
1424
|
type index_SeriesOptions = SeriesOptions;
|
|
1423
1425
|
declare namespace index {
|
|
1424
|
-
export { type index_AggregateFunction as AggregateFunction, index_DataFrame as DataFrame, type index_DataFrameData as DataFrameData, index_DataFrameGroupBy as DataFrameGroupBy, type index_DataFrameOptions as DataFrameOptions, index_Series as Series, type index_SeriesOptions as SeriesOptions };
|
|
1426
|
+
export { type index_AggregateFunction as AggregateFunction, index_DataFrame as DataFrame, type index_DataFrameData as DataFrameData, index_DataFrameGroupBy as DataFrameGroupBy, type index_DataFrameOptions as DataFrameOptions, type index_DataValue as DataValue, index_Series as Series, type index_SeriesOptions as SeriesOptions };
|
|
1425
1427
|
}
|
|
1426
1428
|
|
|
1427
|
-
export { type AggregateFunction as A, DataFrame as D, Series as S, DataFrameGroupBy as a, type DataFrameData as b, type DataFrameOptions as c, type
|
|
1429
|
+
export { type AggregateFunction as A, DataFrame as D, Series as S, DataFrameGroupBy as a, type DataFrameData as b, type DataFrameOptions as c, type DataValue as d, type SeriesOptions as e, index as i };
|