@datagrok-libraries/ml
Advanced tools
Comparing version 0.0.10 to 0.0.12
@@ -0,0 +0,0 @@ { |
@@ -7,7 +7,7 @@ { | ||
"friendlyName": "Datagrok ML library", | ||
"version": "0.0.10", | ||
"version": "0.0.12", | ||
"description": "Machine learning supporting utilities", | ||
"dependencies": { | ||
"datagrok-api": ">=0.95.8", | ||
"@datagrok-libraries/utils": ">=0.0.13", | ||
"@datagrok-libraries/utils": ">=0.0.19", | ||
"cash-dom": "latest", | ||
@@ -14,0 +14,0 @@ "dayjs": "latest", |
import * as umj from 'umap-js'; | ||
import { TSNE } from '@keckelt/tsne'; | ||
import { Options, DistanceMetric, Coordinates, Vectors } from '@datagrok-libraries/utils/src/type-declarations'; | ||
import { SPEBase, PSPEBase } from './spe'; | ||
import { SPEBase, PSPEBase, OriginalSPE } from './spe'; | ||
import { KnownMetrics } from './string-measure'; | ||
@@ -130,2 +130,22 @@ /** | ||
} | ||
/** | ||
* Implements original SPE dimensionality reduction. | ||
* | ||
* @class OriginalSPEReducer | ||
* @extends {Reducer} | ||
*/ | ||
declare class OriginalSPEReducer extends Reducer { | ||
protected reducer: OriginalSPE; | ||
/** | ||
* Creates an instance of OriginalSPEReducer. | ||
* @param {Options} options Options to pass to the constructor. | ||
* @memberof OriginalSPEReducer | ||
*/ | ||
constructor(options: Options); | ||
/** | ||
* Embeds the data given into the two-dimensional space using the original SPE method. | ||
* @return {Coordinates} Cartesian coordinate of this embedding. | ||
*/ | ||
transform(): Coordinates; | ||
} | ||
declare const AvailableReducers: { | ||
@@ -136,2 +156,3 @@ UMAP: typeof UMAPReducer; | ||
pSPE: typeof PSPEReducer; | ||
OriginalSPE: typeof OriginalSPEReducer; | ||
}; | ||
@@ -179,4 +200,13 @@ export declare type KnownMethods = keyof typeof AvailableReducers; | ||
static get availableMetrics(): string[]; | ||
/** | ||
* Returns metrics by their data type. | ||
* | ||
* @readonly | ||
* @memberof DimensionalityReducer | ||
*/ | ||
static get metricDataTypes(): { | ||
[name: string]: string[]; | ||
}; | ||
} | ||
export {}; | ||
//# sourceMappingURL=reduce-dimensionality.d.ts.map |
import * as umj from 'umap-js'; | ||
import { TSNE } from '@keckelt/tsne'; | ||
import { Vector } from '@datagrok-libraries/utils/src/type-declarations'; | ||
import { calcDistanceMatrix, transposeMatrix, calculateEuclideanDistance, assert, } from '@datagrok-libraries/utils/src/operations'; | ||
import { SPEBase, PSPEBase } from './spe'; | ||
import { StringMeasure, AvailableMetrics } from './string-measure'; | ||
import { calcDistanceMatrix, transposeMatrix, assert, } from '@datagrok-libraries/utils/src/operations'; | ||
import { SPEBase, PSPEBase, OriginalSPE } from './spe'; | ||
import { StringMeasure, MetricDataTypes, AvailableMetrics } from './string-measure'; | ||
import BitArray from '@datagrok-libraries/utils/src/bit-array'; | ||
import { similarityMetric } from '@datagrok-libraries/utils/src/similarity-metrics'; | ||
/** | ||
@@ -158,2 +160,26 @@ * Abstract dimensionality reducer. | ||
} | ||
/** | ||
* Implements original SPE dimensionality reduction. | ||
* | ||
* @class OriginalSPEReducer | ||
* @extends {Reducer} | ||
*/ | ||
class OriginalSPEReducer extends Reducer { | ||
/** | ||
* Creates an instance of OriginalSPEReducer. | ||
* @param {Options} options Options to pass to the constructor. | ||
* @memberof OriginalSPEReducer | ||
*/ | ||
constructor(options) { | ||
super(options); | ||
this.reducer = new OriginalSPE(options); | ||
} | ||
/** | ||
* Embeds the data given into the two-dimensional space using the original SPE method. | ||
* @return {Coordinates} Cartesian coordinate of this embedding. | ||
*/ | ||
transform() { | ||
return this.reducer.embed(this.data); | ||
} | ||
} | ||
const AvailableReducers = { | ||
@@ -164,2 +190,3 @@ 'UMAP': UMAPReducer, | ||
'pSPE': PSPEReducer, | ||
'OriginalSPE': OriginalSPEReducer, | ||
}; | ||
@@ -181,6 +208,12 @@ /** | ||
*/ | ||
constructor(data, method, metric, options) { | ||
constructor(data, method, metric = 'EuclideanDistance', options) { | ||
var _a; | ||
const measure = metric ? new StringMeasure(metric).getMeasure() : calculateEuclideanDistance; | ||
const measure = new StringMeasure(metric).getMeasure(); | ||
let specOptions = {}; | ||
if (Object.keys(similarityMetric).includes(metric.toString())) { | ||
for (let i = 0; i < data.length; ++i) { | ||
data[i] = new BitArray(data[i]._data, data[i]._length); | ||
} | ||
} | ||
assert(MetricDataTypes[data[0].constructor.name].includes(metric.toString()), 'Data type of the data is incompatible with the metric given.'); | ||
if (method == 'UMAP') { | ||
@@ -236,3 +269,12 @@ specOptions = Object.assign(Object.assign(Object.assign({ data: data }, { distanceFn: measure }), { nEpochs: options === null || options === void 0 ? void 0 : options.cycles }), options); | ||
} | ||
/** | ||
* Returns metrics by their data type. | ||
* | ||
* @readonly | ||
* @memberof DimensionalityReducer | ||
*/ | ||
static get metricDataTypes() { | ||
return MetricDataTypes; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdWNlLWRpbWVuc2lvbmFsaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVkdWNlLWRpbWVuc2lvbmFsaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxHQUFHLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFbkMsT0FBTyxFQUF1QyxNQUFNLEVBQVUsTUFBTSxpREFBaUQsQ0FBQztBQUN0SCxPQUFPLEVBQ0wsa0JBQWtCLEVBQ2xCLGVBQWUsRUFDZiwwQkFBMEIsRUFDMUIsTUFBTSxHQUNQLE1BQU0sMENBQTBDLENBQUM7QUFDbEQsT0FBTyxFQUFDLE9BQU8sRUFBRSxRQUFRLEVBQUMsTUFBTSxPQUFPLENBQUM7QUFDeEMsT0FBTyxFQUFDLGFBQWEsRUFBRSxnQkFBZ0IsRUFBZSxNQUFNLGtCQUFrQixDQUFDO0FBRS9FOzs7OztHQUtHO0FBQ0gsTUFBZ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ZWN0LmtleXMoQXZhaWxhYmxlUmVkdWNlcnMpO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICogUmV0dXJucyBtZXRyaWNzIGF2YWlsYWJsZS5cclxuICAgKlxyXG4gICAqIEByZWFkb25seVxyXG4gICAqIEBtZW1iZXJvZiBEaW1lbnNpb25hbGl0eVJlZHVjZXJcclxuICAgKi9cclxuICBzdGF0aWMgZ2V0IGF2YWlsYWJsZU1ldHJpY3MoKSB7XHJcbiAgICByZXR1cm4gT2JqZWN0LmtleXMoQXZhaWxhYmxlTWV0cmljcyk7XHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBSZXR1cm5zIG1ldHJpY3MgYnkgdGhlaXIgZGF0YSB0eXBlLlxyXG4gICAqXHJcbiAgICogQHJlYWRvbmx5XHJcbiAgICogQG1lbWJlcm9mIERpbWVuc2lvbmFsaXR5UmVkdWNlclxyXG4gICAqL1xyXG4gICBzdGF0aWMgZ2V0IG1ldHJpY0RhdGFUeXBlcygpIHtcclxuICAgIHJldHVybiBNZXRyaWNEYXRhVHlwZXM7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -68,2 +68,22 @@ import { Options, Coordinates, Vectors, DistanceMetric } from '@datagrok-libraries/utils/src/type-declarations'; | ||
} | ||
/** | ||
* Implements modified stochastic proximity embedding. | ||
* | ||
* @export | ||
* @class OriginalSPE | ||
* @link doi:10.1002/jcc.10234 | ||
*/ | ||
export declare class OriginalSPE extends SPEBase { | ||
/** | ||
* Embeds the vectors given into a two-dimensional space using a modified update rule. | ||
* | ||
* @param {Vectors} vectors D-dimensional coordinates. | ||
* @return {Coordinates} SPE coordinates in D space. | ||
*/ | ||
protected radiusPercent: number; | ||
protected maxDistance: number; | ||
protected maxDistanceSteps: number; | ||
constructor(options?: Options); | ||
embed(vectors: Vectors): Coordinates; | ||
} | ||
//# sourceMappingURL=spe.d.ts.map |
@@ -151,2 +151,73 @@ import { calculateEuclideanDistance, calcDistanceMatrix, fillRandomMat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luZyByYXRlIHtsYW1iZGF9IGJ5IGEgcHJlc2NyaWJlZCB7ZGxhbWJkYX0uXG4gICAgICBsYW1iZGEgLT0gdGhpcy5kbGFtYmRhO1xuICAgICAgaWYgKGxhbWJkYSA8PSAwLikge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGNvb3JkaW5hdGVzO1xuICB9XG59XG4iXX0= | ||
/** | ||
* Implements modified stochastic proximity embedding. | ||
* | ||
* @export | ||
* @class OriginalSPE | ||
* @link doi:10.1002/jcc.10234 | ||
*/ | ||
export class OriginalSPE extends SPEBase { | ||
constructor(options) { | ||
var _a, _b, _c, _d, _e; | ||
super(options); | ||
this.cycles = (_a = options === null || options === void 0 ? void 0 : options.cycles) !== null && _a !== void 0 ? _a : 1e3; | ||
this.steps = (_b = options === null || options === void 0 ? void 0 : options.steps) !== null && _b !== void 0 ? _b : 100000; | ||
this.radiusPercent = (_c = options === null || options === void 0 ? void 0 : options.radiusPercent) !== null && _c !== void 0 ? _c : 1.0; | ||
this.maxDistance = (_d = options === null || options === void 0 ? void 0 : options.maxDistance) !== null && _d !== void 0 ? _d : null; | ||
this.maxDistanceSteps = (_e = options === null || options === void 0 ? void 0 : options.maxDistanceSteps) !== null && _e !== void 0 ? _e : null; | ||
} | ||
embed(vectors) { | ||
const nItems = vectors.length; | ||
const areaWidth = 40; | ||
// Initialize the D-dimensional coordinates of the N points. | ||
const coordinates = fillRandomMatrix(nItems, OriginalSPE.dimension, areaWidth); | ||
this.initDistance(vectors); | ||
if (this.maxDistanceSteps == null) { | ||
this.maxDistanceSteps = nItems * Math.floor((nItems - 1) / 2); | ||
} | ||
if (this.maxDistance == null) { | ||
this.maxDistance = -1e37; | ||
for (let n = 0; n < this.maxDistanceSteps; n++) { | ||
const i = randomInt(nItems); | ||
let j = randomInt(nItems); | ||
while (i == j) | ||
j = randomInt(nItems); | ||
const d = this.calcDistance(vectors, i, j); | ||
if (d > this.maxDistance) { | ||
this.maxDistance = d; | ||
} | ||
} | ||
} | ||
let lambda = this.lambda; | ||
const radius = (this.radiusPercent == 0.0) ? this.maxDistance : this.maxDistance * this.radiusPercent; | ||
for (let cycle = 0; cycle < this.cycles; ++cycle) { | ||
for (let step = 0; step < this.steps; ++step) { | ||
// Select two points, i and j, at random, ... | ||
const i = randomInt(nItems); | ||
let j = randomInt(nItems); | ||
while (i == j) | ||
j = randomInt(nItems); | ||
const rowi = coordinates[i]; | ||
const rowj = coordinates[j]; | ||
// ... retrieve (or evaluate) their proximity in the input space, rij and ... | ||
const r = this.calcDistance(vectors, i, j); | ||
// ... compute their Euclidean distance on the D-dimensional map, dij. | ||
const d = calculateEuclideanDistance(rowi, rowj); | ||
if ((r <= radius) || (d < r)) { | ||
const multiplier = lambda * 0.5 * (r - d) / (d + this.epsilon); | ||
// ... update the coordinates xi and xj. | ||
const diffIJ = vectorAdd(rowi, rowj, -1); | ||
coordinates[i] = vectorAdd(rowi, diffIJ, multiplier); | ||
coordinates[j] = vectorAdd(rowj, diffIJ, -multiplier); | ||
} | ||
} | ||
lambda -= ((this.lambda - this.dlambda) / (this.cycles - 1.0)); | ||
; | ||
if (lambda < this.dlambda) { | ||
break; | ||
} | ||
} | ||
return coordinates; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic3BlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFDTCwwQkFBMEIsRUFDMUIsa0JBQWtCLEVBQ2xCLGdCQUFnQixFQUNoQixTQUFTLEVBQ1QsU0FBUyxHQUNWLE1BQU0sMENBQTBDLENBQUM7QUFFbEQ7Ozs7OztHQU1HO0FBQ0gsTUFBTSxPQUFPLE9BQU87SUFhbEI7Ozs7T0FJRztJQUNILFlBQVksT0FBaUI7O1FBQzNCLElBQUksQ0FBQyxLQUFLLEdBQUcsTU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FkaXVzKSB8fCAoZCA8IHIpKSB7XHJcbiAgICAgICAgICBjb25zdCBtdWx0aXBsaWVyID0gbGFtYmRhICogMC41ICogKHIgLSBkKSAvIChkICsgdGhpcy5lcHNpbG9uKTtcclxuICAgICAgICAgIC8vIC4uLiB1cGRhdGUgdGhlIGNvb3JkaW5hdGVzIHhpIGFuZCB4ai5cclxuICAgICAgICAgIGNvbnN0IGRpZmZJSiA9IHZlY3RvckFkZChyb3dpLCByb3dqLCAtMSk7XHJcbiAgICAgICAgICBjb29yZGluYXRlc1tpXSA9IHZlY3RvckFkZChyb3dpLCBkaWZmSUosIG11bHRpcGxpZXIpO1xyXG4gICAgICAgICAgY29vcmRpbmF0ZXNbal0gPSB2ZWN0b3JBZGQocm93aiwgZGlmZklKLCAtbXVsdGlwbGllcik7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICAgIGxhbWJkYSAtPSAoKHRoaXMubGFtYmRhIC0gdGhpcy5kbGFtYmRhKSAvICh0aGlzLmN5Y2xlcyAtIDEuMCkpOyA7XHJcbiAgICAgIGlmIChsYW1iZGEgPCB0aGlzLmRsYW1iZGEpIHtcclxuICAgICAgICBicmVhaztcclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgcmV0dXJuIGNvb3JkaW5hdGVzO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -5,2 +5,5 @@ import { DistanceMetric } from '@datagrok-libraries/utils/src/type-declarations'; | ||
}; | ||
export declare const MetricDataTypes: { | ||
[name: string]: string[]; | ||
}; | ||
export declare type KnownMetrics = keyof typeof AvailableMetrics; | ||
@@ -21,2 +24,7 @@ /** Unified class implementing different string measures. */ | ||
getMeasure(): DistanceMetric; | ||
/** | ||
* Returns custom string distance function specified. | ||
* @return {string[]} Callback of the measure chosen. | ||
*/ | ||
static getMetricByDataType(dataType: string): string[]; | ||
/** Returns metric names available. */ | ||
@@ -23,0 +31,0 @@ static get availableMeasures(): string[]; |
import * as fl from 'fastest-levenshtein'; | ||
import { jaroWinkler } from 'jaro-winkler-typescript'; | ||
import { similarityMetric } from '@datagrok-libraries/utils/src/similarity-metrics'; | ||
import { calculateEuclideanDistance } from '@datagrok-libraries/utils/src/operations'; | ||
export const AvailableMetrics = { | ||
'EuclideanDistance': calculateEuclideanDistance, | ||
'Levenshtein': fl.distance, | ||
'Jaro-Winkler': jaroWinkler, | ||
'Tanimoto': similarityMetric['Tanimoto'], | ||
'Dice': similarityMetric['Dice'], | ||
'Asymmetric': similarityMetric['Asymmetric'], | ||
'Braun-Blanquet': similarityMetric['Braun-Blanquet'], | ||
'Cosine': similarityMetric['Cosine'], | ||
'Kulczynski': similarityMetric['Kulczynski'], | ||
'Mc-Connaughey': similarityMetric['Mc-Connaughey'], | ||
'Rogot-Goldberg': similarityMetric['Rogot-Goldberg'], | ||
'Russel': similarityMetric['Russel'], | ||
'Sokal': similarityMetric['Sokal'], | ||
}; | ||
export const MetricDataTypes = { | ||
'String': ['Levenshtein', 'Jaro-Winkler'], | ||
'BitArray': Object.keys(similarityMetric), | ||
'Vector': ['EuclideanDistance'], | ||
'Number': [], | ||
'Object': [], | ||
}; | ||
/** Unified class implementing different string measures. */ | ||
@@ -24,2 +44,9 @@ export class StringMeasure { | ||
} | ||
/** | ||
* Returns custom string distance function specified. | ||
* @return {string[]} Callback of the measure chosen. | ||
*/ | ||
static getMetricByDataType(dataType) { | ||
return MetricDataTypes[dataType]; | ||
} | ||
/** Returns metric names available. */ | ||
@@ -30,2 +57,2 @@ static get availableMeasures() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLW1lYXN1cmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzdHJpbmctbWVhc3VyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzFDLE9BQU8sRUFBQyxXQUFXLEVBQUMs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W9uIHNwZWNpZmllZC5cclxuICAgKiBAcmV0dXJuIHtEaXN0YW5jZU1ldHJpY30gQ2FsbGJhY2sgb2YgdGhlIG1lYXN1cmUgY2hvc2VuLlxyXG4gICAqL1xyXG4gIHB1YmxpYyBnZXRNZWFzdXJlKCk6IERpc3RhbmNlTWV0cmljIHtcclxuICAgIHJldHVybiBBdmFpbGFibGVNZXRyaWNzW3RoaXMubWV0aG9kXTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIFJldHVybnMgY3VzdG9tIHN0cmluZyBkaXN0YW5jZSBmdW5jdGlvbiBzcGVjaWZpZWQuXHJcbiAgICogQHJldHVybiB7c3RyaW5nW119IENhbGxiYWNrIG9mIHRoZSBtZWFzdXJlIGNob3Nlbi5cclxuICAgKi9cclxuICBwdWJsaWMgc3RhdGljIGdldE1ldHJpY0J5RGF0YVR5cGUoZGF0YVR5cGU6IHN0cmluZyk6IHN0cmluZ1tdIHtcclxuICAgIHJldHVybiBNZXRyaWNEYXRhVHlwZXNbZGF0YVR5cGVdO1xyXG4gIH1cclxuXHJcbiAgLyoqIFJldHVybnMgbWV0cmljIG5hbWVzIGF2YWlsYWJsZS4gKi9cclxuICBzdGF0aWMgZ2V0IGF2YWlsYWJsZU1lYXN1cmVzKCk6IHN0cmluZ1tdIHtcclxuICAgIHJldHVybiBPYmplY3Qua2V5cyhBdmFpbGFibGVNZXRyaWNzKTtcclxuICB9XHJcbn1cclxuIl19 |
export {}; | ||
//# sourceMappingURL=dimensionality-reducer.d.ts.map |
@@ -21,2 +21,2 @@ import { DimensionalityReducer } from '../reduce-dimensionality'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGltZW5zaW9uYWxpdHktcmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpbWVuc2lvbmFsaXR5LXJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFB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cclxufVxyXG4iXX0= |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
125837
1031
1
50