@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/CHANGELOG.md +11 -0
- package/dist/221.js +1 -1
- package/dist/246.js +2 -0
- package/dist/42.js +2 -2
- package/dist/523.js +3 -0
- package/dist/590.js +1 -1
- package/dist/694.js +2 -2
- package/dist/972.js +2 -0
- package/dist/package-test.js +2 -2
- package/dist/package.js +2 -2
- package/package.json +3 -3
- package/src/package.ts +6 -3
- package/dist/133.js +0 -3
- package/dist/352.js +0 -2
- package/dist/709.js +0 -2
- /package/dist/{133.js.LICENSE.txt → 523.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/eda",
|
|
3
3
|
"friendlyName": "EDA",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.18",
|
|
5
5
|
"description": "Exploratory Data Analysis Tools",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@datagrok-libraries/math": "^1.
|
|
8
|
-
"@datagrok-libraries/ml": "^6.
|
|
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
|
|
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
|
|