@datagrok/eda 1.4.3 → 1.4.5

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.
Files changed (79) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/111.js +1 -1
  3. package/dist/111.js.map +1 -1
  4. package/dist/128.js +1 -1
  5. package/dist/128.js.map +1 -1
  6. package/dist/153.js +1 -1
  7. package/dist/153.js.map +1 -1
  8. package/dist/23.js +1 -1
  9. package/dist/23.js.map +1 -1
  10. package/dist/234.js +1 -1
  11. package/dist/234.js.map +1 -1
  12. package/dist/242.js +1 -1
  13. package/dist/242.js.map +1 -1
  14. package/dist/260.js +1 -1
  15. package/dist/260.js.map +1 -1
  16. package/dist/33.js +1 -1
  17. package/dist/348.js +1 -1
  18. package/dist/348.js.map +1 -1
  19. package/dist/377.js +1 -1
  20. package/dist/377.js.map +1 -1
  21. package/dist/412.js +1 -1
  22. package/dist/412.js.map +1 -1
  23. package/dist/415.js +1 -1
  24. package/dist/415.js.map +1 -1
  25. package/dist/501.js +1 -1
  26. package/dist/501.js.map +1 -1
  27. package/dist/531.js +1 -1
  28. package/dist/531.js.map +1 -1
  29. package/dist/583.js +1 -1
  30. package/dist/583.js.map +1 -1
  31. package/dist/589.js +1 -1
  32. package/dist/589.js.map +1 -1
  33. package/dist/603.js +1 -1
  34. package/dist/603.js.map +1 -1
  35. package/dist/656.js +1 -1
  36. package/dist/656.js.map +1 -1
  37. package/dist/682.js +1 -1
  38. package/dist/682.js.map +1 -1
  39. package/dist/705.js +1 -1
  40. package/dist/705.js.map +1 -1
  41. package/dist/727.js +1 -1
  42. package/dist/727.js.map +1 -1
  43. package/dist/731.js +1 -1
  44. package/dist/731.js.map +1 -1
  45. package/dist/738.js +1 -1
  46. package/dist/738.js.map +1 -1
  47. package/dist/763.js +1 -1
  48. package/dist/763.js.map +1 -1
  49. package/dist/778.js +1 -1
  50. package/dist/778.js.map +1 -1
  51. package/dist/783.js +1 -1
  52. package/dist/783.js.map +1 -1
  53. package/dist/793.js +1 -1
  54. package/dist/793.js.map +1 -1
  55. package/dist/801.js.map +1 -1
  56. package/dist/810.js +1 -1
  57. package/dist/810.js.map +1 -1
  58. package/dist/860.js +1 -1
  59. package/dist/860.js.map +1 -1
  60. package/dist/907.js +1 -1
  61. package/dist/907.js.map +1 -1
  62. package/dist/950.js +1 -1
  63. package/dist/950.js.map +1 -1
  64. package/dist/980.js +1 -1
  65. package/dist/980.js.map +1 -1
  66. package/dist/990.js +1 -1
  67. package/dist/990.js.map +1 -1
  68. package/dist/package-test.js +1 -1
  69. package/dist/package-test.js.map +1 -1
  70. package/dist/package.js +1 -1
  71. package/dist/package.js.map +1 -1
  72. package/package.json +5 -4
  73. package/src/package-api.ts +259 -0
  74. package/src/package.g.ts +522 -0
  75. package/src/package.ts +907 -678
  76. package/test-console-output-1.log +52 -58
  77. package/test-record-1.mp4 +0 -0
  78. package/tsconfig.json +2 -2
  79. package/webpack.config.js +6 -1
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@datagrok/eda",
3
3
  "friendlyName": "EDA",
4
- "version": "1.4.3",
4
+ "version": "1.4.5",
5
5
  "description": "Exploratory Data Analysis Tools",
6
6
  "dependencies": {
7
7
  "@datagrok-libraries/math": "^1.2.6",
8
8
  "@datagrok-libraries/ml": "^6.8.3",
9
9
  "@datagrok-libraries/tutorials": "^1.6.1",
10
- "@datagrok-libraries/utils": "^4.5.7",
10
+ "@datagrok-libraries/utils": "^4.6.5",
11
11
  "@keckelt/tsne": "^1.0.2",
12
12
  "@webgpu/types": "^0.1.40",
13
13
  "cash-dom": "^8.1.1",
14
- "datagrok-api": "^1.25.0",
14
+ "datagrok-api": "^1.26.0",
15
15
  "dayjs": "^1.11.9",
16
16
  "jstat": "^1.9.6",
17
17
  "source-map-loader": "^4.0.1",
@@ -26,6 +26,7 @@
26
26
  "@typescript-eslint/eslint-plugin": "^5.32.0",
27
27
  "@typescript-eslint/parser": "^5.32.0",
28
28
  "css-loader": "^7.1.2",
29
+ "datagrok-tools": "^4.14.48",
29
30
  "eslint": "^8.21.0",
30
31
  "eslint-config-google": "^0.14.0",
31
32
  "style-loader": "^4.0.0",
@@ -39,7 +40,7 @@
39
40
  "debug-eda": "webpack && grok publish",
40
41
  "release-eda": "webpack && grok publish --release",
41
42
  "build-eda": "webpack",
42
- "build": "webpack",
43
+ "build": "grok api && grok check --soft && webpack",
43
44
  "test": "grok test",
44
45
  "debug-eda-dev": "webpack && grok publish dev",
45
46
  "release-eda-dev": "webpack && grok publish dev --release",
@@ -0,0 +1,259 @@
1
+ /**
2
+ This file is auto-generated by the grok api command.
3
+ If you notice any changes, please push them to the repository.
4
+ Do not edit this file manually.
5
+ */
6
+ import * as grok from 'datagrok-api/grok';
7
+ import * as DG from 'datagrok-api/dg';
8
+
9
+
10
+ export namespace funcs {
11
+ export async function init(): Promise<void> {
12
+ return await grok.functions.call('EDA:Init', {});
13
+ }
14
+
15
+ /**
16
+ Density-based spatial clustering of applications with noise (DBSCAN)
17
+ */
18
+ export async function dbScan(df: DG.DataFrame , xCol: DG.Column , yCol: DG.Column , epsilon: number , minPts: number ): Promise<DG.Column> {
19
+ return await grok.functions.call('EDA:DbScan', { df, xCol, yCol, epsilon, minPts });
20
+ }
21
+
22
+ /**
23
+ Principal component analysis (PCA)
24
+ */
25
+ export async function pca(table: DG.DataFrame , features: string[] , components: number , center: boolean , scale: boolean ): Promise<void> {
26
+ return await grok.functions.call('EDA:PCA', { table, features, components, center, scale });
27
+ }
28
+
29
+ export async function dbscanPostProcessingFunction(col1: DG.Column , col2: DG.Column , epsilon: number , minimumPoints: number ): Promise<void> {
30
+ return await grok.functions.call('EDA:DbscanPostProcessingFunction', { col1, col2, epsilon, minimumPoints });
31
+ }
32
+
33
+ export async function numberPreprocessingFunction(col: DG.Column , _metric?: string ): Promise<any> {
34
+ return await grok.functions.call('EDA:NumberPreprocessingFunction', { col, _metric });
35
+ }
36
+
37
+ export async function stringPreprocessingFunction(col: DG.Column , _metric?: string ): Promise<any> {
38
+ return await grok.functions.call('EDA:StringPreprocessingFunction', { col, _metric });
39
+ }
40
+
41
+ export async function reduceDimensionality(): Promise<void> {
42
+ return await grok.functions.call('EDA:ReduceDimensionality', {});
43
+ }
44
+
45
+ export async function getMCLEditor(call: any ): Promise<void> {
46
+ return await grok.functions.call('EDA:GetMCLEditor', { call });
47
+ }
48
+
49
+ /**
50
+ Markov clustering (MCL) is an unsupervised clustering algorithm for graphs based on simulation of stochastic flow.
51
+ */
52
+ export async function mclclustering(df: DG.DataFrame , cols: any , metrics: any , weights: any , aggregationMethod: string , preprocessingFuncs: any , preprocessingFuncArgs: any , threshold: number , maxIterations: number , useWebGPU: boolean , inflate: number , minClusterSize: number ): Promise<void> {
53
+ return await grok.functions.call('EDA:MCLClustering', { df, cols, metrics, weights, aggregationMethod, preprocessingFuncs, preprocessingFuncArgs, threshold, maxIterations, useWebGPU, inflate, minClusterSize });
54
+ }
55
+
56
+ /**
57
+ Markov clustering viewer
58
+ */
59
+ export async function markovClusteringViewer(): Promise<any> {
60
+ return await grok.functions.call('EDA:MarkovClusteringViewer', {});
61
+ }
62
+
63
+ /**
64
+ Compute partial least squares (PLS) regression analysis components: prediction, regression coefficients, T- & U-scores, X-loadings.
65
+ */
66
+ export async function pls(table: DG.DataFrame , features: string[] , predict: DG.Column , components: number , names: DG.Column ): Promise<any> {
67
+ return await grok.functions.call('EDA:PLS', { table, features, predict, components, names });
68
+ }
69
+
70
+ /**
71
+ Compute partial least squares (PLS) regression components. They maximally summarize the variation of the predictors while maximizing correlation with the response variable.
72
+ */
73
+ export async function topMenuPLS(): Promise<void> {
74
+ return await grok.functions.call('EDA:TopMenuPLS', {});
75
+ }
76
+
77
+ /**
78
+ Multidimensional data analysis using partial least squares (PLS) regression.
79
+ */
80
+ export async function mva(): Promise<void> {
81
+ return await grok.functions.call('EDA:MVA', {});
82
+ }
83
+
84
+ /**
85
+ Multidimensional data analysis using partial least squares (PLS) regression. It identifies latent factors and constructs a linear model based on them.
86
+ */
87
+ export async function demoMultivariateAnalysis(): Promise<void> {
88
+ return await grok.functions.call('EDA:DemoMultivariateAnalysis', {});
89
+ }
90
+
91
+ export async function trainLinearKernelSVM(df: DG.DataFrame , predictColumn: DG.Column , gamma: number ): Promise<any> {
92
+ return await grok.functions.call('EDA:TrainLinearKernelSVM', { df, predictColumn, gamma });
93
+ }
94
+
95
+ export async function applyLinearKernelSVM(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
96
+ return await grok.functions.call('EDA:ApplyLinearKernelSVM', { df, model });
97
+ }
98
+
99
+ export async function isApplicableLinearKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
100
+ return await grok.functions.call('EDA:IsApplicableLinearKernelSVM', { df, predictColumn });
101
+ }
102
+
103
+ export async function isInteractiveLinearKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
104
+ return await grok.functions.call('EDA:IsInteractiveLinearKernelSVM', { df, predictColumn });
105
+ }
106
+
107
+ export async function visualizeLinearKernelSVM(df: DG.DataFrame , targetColumn: DG.Column , predictColumn: DG.Column , model: any ): Promise<any> {
108
+ return await grok.functions.call('EDA:VisualizeLinearKernelSVM', { df, targetColumn, predictColumn, model });
109
+ }
110
+
111
+ export async function trainRBFkernelSVM(df: DG.DataFrame , predictColumn: DG.Column , gamma: number , sigma: number ): Promise<any> {
112
+ return await grok.functions.call('EDA:TrainRBFkernelSVM', { df, predictColumn, gamma, sigma });
113
+ }
114
+
115
+ export async function applyRBFkernelSVM(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
116
+ return await grok.functions.call('EDA:ApplyRBFkernelSVM', { df, model });
117
+ }
118
+
119
+ export async function isApplicableRBFkernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
120
+ return await grok.functions.call('EDA:IsApplicableRBFkernelSVM', { df, predictColumn });
121
+ }
122
+
123
+ export async function isInteractiveRBFkernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
124
+ return await grok.functions.call('EDA:IsInteractiveRBFkernelSVM', { df, predictColumn });
125
+ }
126
+
127
+ export async function visualizeRBFkernelSVM(df: DG.DataFrame , targetColumn: DG.Column , predictColumn: DG.Column , model: any ): Promise<any> {
128
+ return await grok.functions.call('EDA:VisualizeRBFkernelSVM', { df, targetColumn, predictColumn, model });
129
+ }
130
+
131
+ export async function trainPolynomialKernelSVM(df: DG.DataFrame , predictColumn: DG.Column , gamma: number , c: number , d: number ): Promise<any> {
132
+ return await grok.functions.call('EDA:TrainPolynomialKernelSVM', { df, predictColumn, gamma, c, d });
133
+ }
134
+
135
+ export async function applyPolynomialKernelSVM(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
136
+ return await grok.functions.call('EDA:ApplyPolynomialKernelSVM', { df, model });
137
+ }
138
+
139
+ export async function isApplicablePolynomialKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
140
+ return await grok.functions.call('EDA:IsApplicablePolynomialKernelSVM', { df, predictColumn });
141
+ }
142
+
143
+ export async function isInteractivePolynomialKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
144
+ return await grok.functions.call('EDA:IsInteractivePolynomialKernelSVM', { df, predictColumn });
145
+ }
146
+
147
+ export async function visualizePolynomialKernelSVM(df: DG.DataFrame , targetColumn: DG.Column , predictColumn: DG.Column , model: any ): Promise<any> {
148
+ return await grok.functions.call('EDA:VisualizePolynomialKernelSVM', { df, targetColumn, predictColumn, model });
149
+ }
150
+
151
+ export async function trainSigmoidKernelSVM(df: DG.DataFrame , predictColumn: DG.Column , gamma: number , kappa: number , theta: number ): Promise<any> {
152
+ return await grok.functions.call('EDA:TrainSigmoidKernelSVM', { df, predictColumn, gamma, kappa, theta });
153
+ }
154
+
155
+ export async function applySigmoidKernelSVM(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
156
+ return await grok.functions.call('EDA:ApplySigmoidKernelSVM', { df, model });
157
+ }
158
+
159
+ export async function isApplicableSigmoidKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
160
+ return await grok.functions.call('EDA:IsApplicableSigmoidKernelSVM', { df, predictColumn });
161
+ }
162
+
163
+ export async function isInteractiveSigmoidKernelSVM(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
164
+ return await grok.functions.call('EDA:IsInteractiveSigmoidKernelSVM', { df, predictColumn });
165
+ }
166
+
167
+ export async function visualizeSigmoidKernelSVM(df: DG.DataFrame , targetColumn: DG.Column , predictColumn: DG.Column , model: any ): Promise<any> {
168
+ return await grok.functions.call('EDA:VisualizeSigmoidKernelSVM', { df, targetColumn, predictColumn, model });
169
+ }
170
+
171
+ /**
172
+ One-way analysis of variances (ANOVA) determines whether the examined factor has a significant impact on the explored feature.
173
+ */
174
+ export async function anova(): Promise<void> {
175
+ return await grok.functions.call('EDA:Anova', {});
176
+ }
177
+
178
+ /**
179
+ Missing values imputation using the k-nearest neighbors method (KNN)
180
+ */
181
+ export async function kNNImputation(): Promise<void> {
182
+ return await grok.functions.call('EDA:KNNImputation', {});
183
+ }
184
+
185
+ /**
186
+ Missing values imputation using the k-nearest neighbors method
187
+ */
188
+ export async function kNNImputationForTable(table: DG.DataFrame ): Promise<void> {
189
+ return await grok.functions.call('EDA:KNNImputationForTable', { table });
190
+ }
191
+
192
+ export async function trainLinearRegression(df: DG.DataFrame , predictColumn: DG.Column ): Promise<any> {
193
+ return await grok.functions.call('EDA:TrainLinearRegression', { df, predictColumn });
194
+ }
195
+
196
+ export async function applyLinearRegression(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
197
+ return await grok.functions.call('EDA:ApplyLinearRegression', { df, model });
198
+ }
199
+
200
+ export async function isApplicableLinearRegression(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
201
+ return await grok.functions.call('EDA:IsApplicableLinearRegression', { df, predictColumn });
202
+ }
203
+
204
+ export async function isInteractiveLinearRegression(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
205
+ return await grok.functions.call('EDA:IsInteractiveLinearRegression', { df, predictColumn });
206
+ }
207
+
208
+ export async function trainSoftmax(df: DG.DataFrame , predictColumn: DG.Column , rate: number , iterations: number , penalty: number , tolerance: number ): Promise<any> {
209
+ return await grok.functions.call('EDA:TrainSoftmax', { df, predictColumn, rate, iterations, penalty, tolerance });
210
+ }
211
+
212
+ export async function applySoftmax(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
213
+ return await grok.functions.call('EDA:ApplySoftmax', { df, model });
214
+ }
215
+
216
+ export async function isApplicableSoftmax(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
217
+ return await grok.functions.call('EDA:IsApplicableSoftmax', { df, predictColumn });
218
+ }
219
+
220
+ export async function isInteractiveSoftmax(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
221
+ return await grok.functions.call('EDA:IsInteractiveSoftmax', { df, predictColumn });
222
+ }
223
+
224
+ export async function trainPLSRegression(df: DG.DataFrame , predictColumn: DG.Column , components: number ): Promise<any> {
225
+ return await grok.functions.call('EDA:TrainPLSRegression', { df, predictColumn, components });
226
+ }
227
+
228
+ export async function applyPLSRegression(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
229
+ return await grok.functions.call('EDA:ApplyPLSRegression', { df, model });
230
+ }
231
+
232
+ export async function isApplicablePLSRegression(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
233
+ return await grok.functions.call('EDA:IsApplicablePLSRegression', { df, predictColumn });
234
+ }
235
+
236
+ export async function visualizePLSRegression(df: DG.DataFrame , targetColumn: DG.Column , predictColumn: DG.Column , model: any ): Promise<any> {
237
+ return await grok.functions.call('EDA:VisualizePLSRegression', { df, targetColumn, predictColumn, model });
238
+ }
239
+
240
+ export async function isInteractivePLSRegression(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
241
+ return await grok.functions.call('EDA:IsInteractivePLSRegression', { df, predictColumn });
242
+ }
243
+
244
+ export async function trainXGBooster(df: DG.DataFrame , predictColumn: DG.Column , iterations: number , eta: number , maxDepth: number , lambda: number , alpha: number ): Promise<any> {
245
+ return await grok.functions.call('EDA:TrainXGBooster', { df, predictColumn, iterations, eta, maxDepth, lambda, alpha });
246
+ }
247
+
248
+ export async function applyXGBooster(df: DG.DataFrame , model: any ): Promise<DG.DataFrame> {
249
+ return await grok.functions.call('EDA:ApplyXGBooster', { df, model });
250
+ }
251
+
252
+ export async function isInteractiveXGBooster(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
253
+ return await grok.functions.call('EDA:IsInteractiveXGBooster', { df, predictColumn });
254
+ }
255
+
256
+ export async function isApplicableXGBooster(df: DG.DataFrame , predictColumn: DG.Column ): Promise<boolean> {
257
+ return await grok.functions.call('EDA:IsApplicableXGBooster', { df, predictColumn });
258
+ }
259
+ }