@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +7 -4
  2. package/dist/111.js +1 -1
  3. package/dist/111.js.map +1 -1
  4. package/dist/153.js +1 -1
  5. package/dist/153.js.map +1 -1
  6. package/dist/234.js +1 -1
  7. package/dist/234.js.map +1 -1
  8. package/dist/260.js +1 -1
  9. package/dist/260.js.map +1 -1
  10. package/dist/348.js +1 -1
  11. package/dist/348.js.map +1 -1
  12. package/dist/377.js +1 -1
  13. package/dist/377.js.map +1 -1
  14. package/dist/412.js +1 -1
  15. package/dist/412.js.map +1 -1
  16. package/dist/531.js +1 -1
  17. package/dist/531.js.map +1 -1
  18. package/dist/583.js +1 -1
  19. package/dist/583.js.map +1 -1
  20. package/dist/603.js +1 -1
  21. package/dist/603.js.map +1 -1
  22. package/dist/656.js +1 -1
  23. package/dist/656.js.map +1 -1
  24. package/dist/682.js +1 -1
  25. package/dist/682.js.map +1 -1
  26. package/dist/705.js +1 -1
  27. package/dist/705.js.map +1 -1
  28. package/dist/727.js +1 -1
  29. package/dist/727.js.map +1 -1
  30. package/dist/763.js +1 -1
  31. package/dist/763.js.map +1 -1
  32. package/dist/778.js +1 -1
  33. package/dist/778.js.map +1 -1
  34. package/dist/783.js +1 -1
  35. package/dist/783.js.map +1 -1
  36. package/dist/793.js +1 -1
  37. package/dist/793.js.map +1 -1
  38. package/dist/91.js +1 -1
  39. package/dist/91.js.map +1 -1
  40. package/dist/950.js +1 -1
  41. package/dist/950.js.map +1 -1
  42. package/dist/980.js +1 -1
  43. package/dist/980.js.map +1 -1
  44. package/dist/990.js +1 -1
  45. package/dist/990.js.map +1 -1
  46. package/dist/package-test.js +1 -1
  47. package/dist/package-test.js.map +1 -1
  48. package/dist/package.js +1 -1
  49. package/dist/package.js.map +1 -1
  50. package/package.json +11 -10
  51. package/src/anova/anova-tools.ts +0 -4
  52. package/src/global.d.ts +13 -0
  53. package/src/missing-values-imputation/ui-constants.ts +2 -0
  54. package/src/missing-values-imputation/ui.ts +7 -7
  55. package/src/package.ts +1 -1
  56. 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.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.0",
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": "latest"
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": "latest",
28
+ "css-loader": "^7.1.2",
29
29
  "eslint": "^8.21.0",
30
30
  "eslint-config-google": "^0.14.0",
31
- "style-loader": "latest",
32
- "ts-loader": "latest",
33
- "typescript": "latest",
34
- "webpack": "latest",
35
- "webpack-cli": "latest"
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
+ }
@@ -273,10 +273,6 @@ export class FactorizedData {
273
273
  this.sumsOfSquares = sumsOfSquares;
274
274
  this.subSampleSizes = subSampleSizes;
275
275
 
276
- console.log(sums);
277
- console.log(sumsOfSquares);
278
- console.log(subSampleSizes);
279
-
280
276
  break;
281
277
 
282
278
  default:
@@ -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
+ }
@@ -62,3 +62,5 @@ export enum HINT {
62
62
  IMPUTATION_SETTINGS = 'Simple imputation settings',
63
63
  KEEP_EMPTY = 'Defines whether to keep empty missing values failed to be imputed OR fill them using simple imputation',
64
64
  };
65
+
66
+ export const MAX_INPUT_NAME_LENGTH = 15;
@@ -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, HTMLDivElement>();
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
- weightInput.setTooltip(HINT.WEIGHT);
232
+ ui.tooltip.bind(weightInput.captionLabel, name);
233
+ ui.tooltip.bind(weightInput.input, HINT.WEIGHT);
233
234
 
234
- const div = ui.divH([distTypeInput.root, weightInput.root]);
235
- metricInfoInputs.set(name, div);
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 analysis
307
+ //meta.demoPath: Compute | Multivariate Analysis
308
308
  export async function demoMultivariateAnalysis(): Promise<any> {
309
309
  await runDemoMVA();
310
310
  }
@@ -16,7 +16,7 @@ const ROWS = 100;
16
16
  const ROWS_K = 100;
17
17
  const COLS = 100;
18
18
  const COMPONENTS = 3;
19
- const TIMEOUT = 4000;
19
+ const TIMEOUT = 8000;
20
20
  const INDEP_COLS = 2;
21
21
  const DEP_COLS = 5;
22
22
  const ERROR = 0.1;