@datagrok/eda 1.2.2 → 1.2.3
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/CHANGELOG.md +7 -4
- package/dist/111.js +1 -1
- package/dist/111.js.map +1 -1
- package/dist/153.js +1 -1
- package/dist/153.js.map +1 -1
- package/dist/234.js +1 -1
- package/dist/234.js.map +1 -1
- package/dist/260.js +1 -1
- package/dist/260.js.map +1 -1
- package/dist/348.js +1 -1
- package/dist/348.js.map +1 -1
- package/dist/377.js +1 -1
- package/dist/377.js.map +1 -1
- package/dist/412.js +1 -1
- package/dist/412.js.map +1 -1
- package/dist/531.js +1 -1
- package/dist/531.js.map +1 -1
- package/dist/583.js +1 -1
- package/dist/583.js.map +1 -1
- package/dist/603.js +1 -1
- package/dist/603.js.map +1 -1
- package/dist/656.js +1 -1
- package/dist/656.js.map +1 -1
- package/dist/682.js +1 -1
- package/dist/682.js.map +1 -1
- package/dist/705.js +1 -1
- package/dist/705.js.map +1 -1
- package/dist/727.js +1 -1
- package/dist/727.js.map +1 -1
- package/dist/763.js +1 -1
- package/dist/763.js.map +1 -1
- package/dist/778.js +1 -1
- package/dist/778.js.map +1 -1
- package/dist/783.js +1 -1
- package/dist/783.js.map +1 -1
- package/dist/793.js +1 -1
- package/dist/793.js.map +1 -1
- package/dist/91.js +1 -1
- package/dist/91.js.map +1 -1
- package/dist/950.js +1 -1
- package/dist/950.js.map +1 -1
- package/dist/980.js +1 -1
- package/dist/980.js.map +1 -1
- package/dist/990.js +1 -1
- package/dist/990.js.map +1 -1
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +11 -10
- package/src/anova/anova-tools.ts +0 -4
- package/src/global.d.ts +13 -0
- package/src/missing-values-imputation/ui-constants.ts +2 -0
- package/src/missing-values-imputation/ui.ts +7 -7
- package/src/package.ts +1 -1
- package/src/tests/linear-methods-tests.ts +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/eda",
|
|
3
3
|
"friendlyName": "EDA",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"description": "Exploratory Data Analysis Tools",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@datagrok-libraries/math": "^1.2.0",
|
|
8
8
|
"@datagrok-libraries/ml": "^6.7.0",
|
|
9
|
-
"@datagrok-libraries/tutorials": "^1.4.
|
|
9
|
+
"@datagrok-libraries/tutorials": "^1.4.2",
|
|
10
10
|
"@datagrok-libraries/utils": "^4.3.0",
|
|
11
11
|
"@keckelt/tsne": "^1.0.2",
|
|
12
12
|
"@webgpu/types": "^0.1.40",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"jstat": "^1.9.6",
|
|
17
17
|
"source-map-loader": "^4.0.1",
|
|
18
18
|
"umap-js": "^1.3.3",
|
|
19
|
-
"worker-loader": "
|
|
19
|
+
"worker-loader": "^3.0.8"
|
|
20
20
|
},
|
|
21
21
|
"author": {
|
|
22
22
|
"name": "Viktor Makarichev",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
|
27
27
|
"@typescript-eslint/parser": "^5.32.0",
|
|
28
|
-
"css-loader": "
|
|
28
|
+
"css-loader": "^7.1.2",
|
|
29
29
|
"eslint": "^8.21.0",
|
|
30
30
|
"eslint-config-google": "^0.14.0",
|
|
31
|
-
"style-loader": "
|
|
32
|
-
"ts-loader": "
|
|
33
|
-
"typescript": "
|
|
34
|
-
"webpack": "
|
|
35
|
-
"webpack-cli": "
|
|
31
|
+
"style-loader": "^4.0.0",
|
|
32
|
+
"ts-loader": "^9.5.1",
|
|
33
|
+
"typescript": "^5.6.3",
|
|
34
|
+
"webpack": "^5.95.0",
|
|
35
|
+
"webpack-cli": "^5.1.4"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"link-all": "npm link datagrok-api @datagrok-libraries/utils @datagrok-libraries/tutorials",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"release-eda": "webpack && grok publish --release",
|
|
41
41
|
"build-eda": "webpack",
|
|
42
42
|
"build": "webpack",
|
|
43
|
+
"test": "grok test",
|
|
43
44
|
"debug-eda-dev": "webpack && grok publish dev",
|
|
44
45
|
"release-eda-dev": "webpack && grok publish dev --release",
|
|
45
46
|
"debug-eda-local": "webpack && grok publish local",
|
|
@@ -92,4 +93,4 @@
|
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
}
|
|
96
|
+
}
|
package/src/anova/anova-tools.ts
CHANGED
package/src/global.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as grokNamespace from 'datagrok-api/grok';
|
|
2
|
+
import * as uiNamespace from 'datagrok-api/ui';
|
|
3
|
+
import * as DGNamespace from 'datagrok-api/dg';
|
|
4
|
+
import * as rxjsNamespace from 'rxjs';
|
|
5
|
+
import $Namespace from 'cash-dom';
|
|
6
|
+
|
|
7
|
+
declare global {
|
|
8
|
+
const grok: typeof grokNamespace;
|
|
9
|
+
const ui: typeof uiNamespace;
|
|
10
|
+
const DG: typeof DGNamespace;
|
|
11
|
+
const rjxs: typeof rxjsNamespace;
|
|
12
|
+
const $: typeof $Namespace;
|
|
13
|
+
}
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {TITLE, KNN_IMPUTER, ERROR_MSG, HINT} from './ui-constants';
|
|
5
|
+
import {TITLE, KNN_IMPUTER, ERROR_MSG, HINT, MAX_INPUT_NAME_LENGTH} from './ui-constants';
|
|
6
6
|
import {SUPPORTED_COLUMN_TYPES, METRIC_TYPE, DISTANCE_TYPE, MetricInfo, DEFAULT, MIN_NEIGHBORS,
|
|
7
7
|
impute, getMissingValsIndices, areThereFails, imputeFailed} from './knn-imputer';
|
|
8
8
|
|
|
@@ -190,7 +190,7 @@ export async function runKNNImputer(df?: DG.DataFrame): Promise<void> {
|
|
|
190
190
|
|
|
191
191
|
// Metrics components
|
|
192
192
|
const featuresMetrics = new Map<string, MetricInfo>();
|
|
193
|
-
const metricInfoInputs = new Map<string,
|
|
193
|
+
const metricInfoInputs = new Map<string, HTMLElement>();
|
|
194
194
|
const metricsDiv = ui.divV([]);
|
|
195
195
|
metricsDiv.style.overflow = 'auto';
|
|
196
196
|
|
|
@@ -214,7 +214,7 @@ export async function runKNNImputer(df?: DG.DataFrame): Promise<void> {
|
|
|
214
214
|
|
|
215
215
|
// The following should provide a slider (see th bug https://reddata.atlassian.net/browse/GROK-14431)
|
|
216
216
|
const prop = DG.Property.fromOptions({
|
|
217
|
-
'name': name,
|
|
217
|
+
'name': name.length < MAX_INPUT_NAME_LENGTH ? name : name.slice(0, MAX_INPUT_NAME_LENGTH).concat('...'),
|
|
218
218
|
'inputType': 'Float',
|
|
219
219
|
'min': 0,
|
|
220
220
|
'max': 10,
|
|
@@ -229,11 +229,11 @@ export async function runKNNImputer(df?: DG.DataFrame): Promise<void> {
|
|
|
229
229
|
distInfo.weight = value ?? settings.defaultWeight;
|
|
230
230
|
featuresMetrics.set(name, distInfo);
|
|
231
231
|
});
|
|
232
|
-
|
|
232
|
+
ui.tooltip.bind(weightInput.captionLabel, name);
|
|
233
|
+
ui.tooltip.bind(weightInput.input, HINT.WEIGHT);
|
|
233
234
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
metricsDiv.append(div);
|
|
235
|
+
metricInfoInputs.set(name, weightInput.root);
|
|
236
|
+
metricsDiv.append(weightInput.root);
|
|
237
237
|
});
|
|
238
238
|
|
|
239
239
|
// The main dialog
|
package/src/package.ts
CHANGED
|
@@ -304,7 +304,7 @@ export async function MVA(): Promise<void> {
|
|
|
304
304
|
|
|
305
305
|
//name: MVA demo
|
|
306
306
|
//description: Multidimensional data analysis using partial least squares (PLS) regression. It identifies latent factors and constructs a linear model based on them.
|
|
307
|
-
//meta.demoPath: Compute | Multivariate
|
|
307
|
+
//meta.demoPath: Compute | Multivariate Analysis
|
|
308
308
|
export async function demoMultivariateAnalysis(): Promise<any> {
|
|
309
309
|
await runDemoMVA();
|
|
310
310
|
}
|