@datagrok/eda 1.1.16 → 1.1.18

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@datagrok/eda",
3
3
  "friendlyName": "EDA",
4
- "version": "1.1.16",
4
+ "version": "1.1.18",
5
5
  "description": "Exploratory Data Analysis Tools",
6
6
  "dependencies": {
7
- "@datagrok-libraries/math": "^1.0.8",
8
- "@datagrok-libraries/ml": "^6.5.0",
7
+ "@datagrok-libraries/math": "^1.1.2",
8
+ "@datagrok-libraries/ml": "^6.6.1",
9
9
  "@datagrok-libraries/tutorials": "^1.3.6",
10
10
  "@datagrok-libraries/utils": "^4.1.44",
11
11
  "@keckelt/tsne": "^1.0.2",
package/src/package.ts CHANGED
@@ -127,7 +127,7 @@ export function numberPreprocessingFunction(col: DG.Column, _metric: string) {
127
127
  //name: None (string)
128
128
  //tags: dim-red-preprocessing-function
129
129
  //meta.supportedTypes: string
130
- //meta.supportedDistanceFunctions: Levenshtein,Hamming,One-Hot
130
+ //meta.supportedDistanceFunctions: One-Hot,Levenshtein,Hamming
131
131
  //input: column col
132
132
  //input: string _metric {optional: true}
133
133
  //output: object result
@@ -167,6 +167,7 @@ export function GetMCLEditor(call: DG.FuncCall): void {
167
167
  df: params.table, cols: params.columns, metrics: params.distanceMetrics,
168
168
  weights: params.weights, aggregationMethod: params.aggreaggregationMethod, preprocessingFuncs: params.preprocessingFunctions,
169
169
  preprocessingFuncArgs: params.preprocessingFuncArgs, threshold: params.threshold, maxIterations: params.maxIterations,
170
+ useWebGPU: params.useWebGPU,
170
171
  }).call(true);
171
172
  }).show();
172
173
  } catch (err: any) {
@@ -190,12 +191,14 @@ export function GetMCLEditor(call: DG.FuncCall): void {
190
191
  //input: object preprocessingFuncArgs
191
192
  //input: int threshold = 80
192
193
  //input: int maxIterations = 10
194
+ //input: bool useWebGPU = false
193
195
  //editor: EDA: GetMCLEditor
194
196
  export async function MCL(df: DG.DataFrame, cols: DG.Column[], metrics: KnownMetrics[],
195
197
  weights: number[], aggregationMethod: DistanceAggregationMethod, preprocessingFuncs: (DG.Func | null | undefined)[],
196
- preprocessingFuncArgs: any[], threshold: number = 80, maxIterations: number = 10) {
198
+ preprocessingFuncArgs: any[], threshold: number = 80, maxIterations: number = 10, useWebGPU: boolean = false,
199
+ ): Promise< DG.ScatterPlotViewer | undefined> {
197
200
  const res = (await markovCluster(df, cols, metrics, weights,
198
- aggregationMethod, preprocessingFuncs, preprocessingFuncArgs, threshold, maxIterations));
201
+ aggregationMethod, preprocessingFuncs, preprocessingFuncArgs, threshold, maxIterations, useWebGPU));
199
202
  return res?.sc;
200
203
  }
201
204