@datagrok-libraries/ml
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -7,3 +7,3 @@ { | ||
"friendlyName": "Datagrok ML library", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Machine learning supporting utilities", | ||
@@ -10,0 +10,0 @@ "dependencies": { |
@@ -170,4 +170,11 @@ import * as umj from 'umap-js'; | ||
static get availableMethods(): string[]; | ||
/** | ||
* Returns metrics available. | ||
* | ||
* @readonly | ||
* @memberof DimensionalityReducer | ||
*/ | ||
static get availableMetrics(): string[]; | ||
} | ||
export {}; | ||
//# sourceMappingURL=reduce-dimensionality.d.ts.map |
@@ -6,3 +6,3 @@ import * as umj from 'umap-js'; | ||
import { SPEBase, PSPEBase } from './spe'; | ||
import { StringMeasure } from './string-measure'; | ||
import { StringMeasure, AvailableMetrics } from './string-measure'; | ||
/** | ||
@@ -225,3 +225,12 @@ * Abstract dimensionality reducer. | ||
} | ||
/** | ||
* Returns metrics available. | ||
* | ||
* @readonly | ||
* @memberof DimensionalityReducer | ||
*/ | ||
static get availableMetrics() { | ||
return Object.keys(AvailableMetrics); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdWNlLWRpbWVuc2lvbmFsaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVkdWNlLWRpbWVuc2lvbmFsaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxHQUFHLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFbkMsT0FBTyxFQUF1QyxNQUFNLEVBQVUsTUFBTSxpREFBaUQsQ0FBQztBQUN0SCxPQUFPLEVBQ0wsa0JBQWtCLEVBQ2xCLGVBQWUsRUFDZiwwQkFBMEIsRUFDMUIsTUFBTSxHQUNQLE1BQU0sMENBQTBDLENBQUM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xuICAgIGlmICh0cmFuc3Bvc2UpIHtcbiAgICAgIGVtYmVkZGluZyA9IHRyYW5zcG9zZU1hdHJpeChlbWJlZGRpbmcpO1xuICAgIH1cbiAgICByZXR1cm4gZW1iZWRkaW5nO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgZGltZW5zaW9uYWxpdHkgcmVkdWN0aW9uIG1ldGhvZHMgYXZhaWxhYmxlLlxuICAgKlxuICAgKiBAcmVhZG9ubHlcbiAgICogQG1lbWJlcm9mIERpbWVuc2lvbmFsaXR5UmVkdWNlclxuICAgKi9cbiAgc3RhdGljIGdldCBhdmFpbGFibGVNZXRob2RzKCkge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhBdmFpbGFibGVSZWR1Y2Vycyk7XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyBtZXRyaWNzIGF2YWlsYWJsZS5cbiAgICpcbiAgICogQHJlYWRvbmx5XG4gICAqIEBtZW1iZXJvZiBEaW1lbnNpb25hbGl0eVJlZHVjZXJcbiAgICovXG4gIHN0YXRpYyBnZXQgYXZhaWxhYmxlTWV0cmljcygpIHtcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoQXZhaWxhYmxlTWV0cmljcyk7XG4gIH1cbn1cbiJdfQ== |
import { DistanceMetric } from '@datagrok-libraries/utils/src/type-declarations'; | ||
declare const AvailableMetrics: { | ||
export declare const AvailableMetrics: { | ||
[name: string]: DistanceMetric; | ||
@@ -23,3 +23,2 @@ }; | ||
} | ||
export {}; | ||
//# sourceMappingURL=string-measure.d.ts.map |
import * as fl from 'fastest-levenshtein'; | ||
import { jaroWinkler } from 'jaro-winkler-typescript'; | ||
const AvailableMetrics = { | ||
export const AvailableMetrics = { | ||
'Levenshtein': fl.distance, | ||
@@ -29,2 +29,2 @@ 'Jaro-Winkler': jaroWinkler, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLW1lYXN1cmUuanMiLCJ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ByZXR1cm4gQXZhaWxhYmxlTWV0cmljc1t0aGlzLm1ldGhvZF07XG4gIH1cblxuICAvKiogUmV0dXJucyBtZXRyaWMgbmFtZXMgYXZhaWxhYmxlLiAqL1xuICBzdGF0aWMgZ2V0IGF2YWlsYWJsZU1lYXN1cmVzKCk6IHN0cmluZ1tdIHtcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoQXZhaWxhYmxlTWV0cmljcyk7XG4gIH1cbn1cbiJdfQ== |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
101109
833