@datagrok-libraries/ml
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@datagrok-libraries/ml", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"friendlyName": "Datagrok ML library", | ||
"version": "0.0.8", | ||
"description": "Machine learning supporting utilities", | ||
"dependencies": { | ||
"datagrok-api": ">=0.95.8", | ||
"@datagrok-libraries/utils": ">=0.0.13", | ||
"cash-dom": "latest", | ||
"dayjs": "latest", | ||
"fastest-levenshtein": "^1.0.12", | ||
"jaro-winkler-typescript": "^1.0.1", | ||
"umap-js": "^1.3.3", | ||
"@keckelt/tsne": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.2.3", | ||
"ts-loader": "^9.2.6", | ||
"webpack": "latest", | ||
"webpack-cli": "latest", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-google": "^0.14.0" | ||
}, | ||
"scripts": { | ||
"link": "npm link", | ||
"link-api": "npm link datagrok-api", | ||
"link-utils": "npm link @datagrok-libraries/utils", | ||
"link-all": "npm link datagrok-api @datagrok-libraries/utils", | ||
"debug-ml": "grok publish --rebuild", | ||
"release-ml": "grok publish --rebuild --release", | ||
"build-ml": "tsc", | ||
"build": "tsc", | ||
"debug-ml-public": "grok publish public --rebuild", | ||
"release-ml-public": "grok publish public --rebuild --release", | ||
"debug-ml-local": "grok publish local --rebuild", | ||
"release-ml-local": "grok publish local --rebuild --release", | ||
"lint": "eslint src --ext .ts", | ||
"lint-fix": "eslint src --ext .ts --fix" | ||
} | ||
"name": "@datagrok-libraries/ml", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"friendlyName": "Datagrok ML library", | ||
"version": "0.0.9", | ||
"description": "Machine learning supporting utilities", | ||
"dependencies": { | ||
"datagrok-api": ">=0.95.8", | ||
"@datagrok-libraries/utils": ">=0.0.13", | ||
"cash-dom": "latest", | ||
"dayjs": "latest", | ||
"fastest-levenshtein": "^1.0.12", | ||
"jaro-winkler-typescript": "^1.0.1", | ||
"umap-js": "^1.3.3", | ||
"@keckelt/tsne": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.2.3", | ||
"ts-loader": "^9.2.6", | ||
"webpack": "latest", | ||
"webpack-cli": "latest", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-google": "^0.14.0" | ||
}, | ||
"scripts": { | ||
"link": "npm link", | ||
"link-api": "npm link datagrok-api", | ||
"link-utils": "npm link @datagrok-libraries/utils", | ||
"link-all": "npm link datagrok-api @datagrok-libraries/utils", | ||
"debug-ml": "grok publish --rebuild", | ||
"release-ml": "grok publish --rebuild --release", | ||
"build-ml": "tsc", | ||
"build": "tsc", | ||
"debug-ml-public": "grok publish public --rebuild", | ||
"release-ml-public": "grok publish public --rebuild --release", | ||
"debug-ml-local": "grok publish local --rebuild", | ||
"release-ml-local": "grok publish local --rebuild --release", | ||
"lint": "eslint src --ext .ts", | ||
"lint-fix": "eslint src --ext .ts --fix" | ||
} | ||
} |
@@ -171,13 +171,3 @@ import * as umj from 'umap-js'; | ||
} | ||
/** | ||
* A worker to perform dimensionality reduction. | ||
* | ||
* @param {any[]} columnData The data to process. | ||
* @param {string} method A method of dimensionality reduction. | ||
* @param {string} measure A distance metrics. | ||
* @param {number} cyclesCount Number of iterations to run. | ||
* @return {Promise<unknown>} Resulting embedding. | ||
*/ | ||
export declare function createDimensinalityReducingWorker(columnData: any[], method: string, measure?: string, cyclesCount?: number): Promise<unknown>; | ||
export {}; | ||
//# sourceMappingURL=reduce-dimensionality.d.ts.map |
@@ -225,25 +225,2 @@ import * as umj from 'umap-js'; | ||
} | ||
/** | ||
* A worker to perform dimensionality reduction. | ||
* | ||
* @param {any[]} columnData The data to process. | ||
* @param {string} method A method of dimensionality reduction. | ||
* @param {string} measure A distance metrics. | ||
* @param {number} cyclesCount Number of iterations to run. | ||
* @return {Promise<unknown>} Resulting embedding. | ||
*/ | ||
export function createDimensinalityReducingWorker(columnData, method, measure, cyclesCount) { | ||
return new Promise(function (resolve) { | ||
const worker = new Worker(new URL('./workers/dimensionality-reducer', import.meta.url)); | ||
worker.postMessage({ | ||
columnData: columnData, | ||
method: method, | ||
measure: measure, | ||
cyclesCount: cyclesCount, | ||
}); | ||
worker.onmessage = ({ data: { embedding } }) => { | ||
resolve(embedding); | ||
}; | ||
}); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdWNlLWRpbWVuc2lvbmFsaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVkdWNlLWRpbWVuc2lvbmFsaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxHQUFHLE1BQU0sU0FBUyxDQUFDO0FBQy9CLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFbkMsT0FBTyxFQUF1QyxNQUFNLEVBQVUsTUFBTSxpREFBaUQsQ0FBQztBQUN0SCxPQUFPLEVBQ0wsa0JBQWtCLEVBQ2xCLGVBQWUsRUFDZiwwQkFBMEIsRUFDMUIsTUFBTSxHQUNQLE1BQU0sMENBQTBDLENBQUM7QUFDbEQsT0FBTyxFQUFDLE9BQU8sRUFBRSxRQUFRLEVBQUMsTUFBTSxPQUFPLENBQUM7QUFDeEMsT0FBTyxFQUFDLGFBQWEsRUFBZSxNQUFNLGtCQUFrQixDQUFDO0FBRTdEOzs7OztHQUtHO0FBQ0gsTUFBZSxPQUFPO0lBR3BCOzs7O09BSUc7SUFDSCxZQUFZLE9BQWdCO1FBQzFCLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztJQUMzQixDQUFDO0NBVUY7QUFFRDs7Ozs7R0FLRztBQUNILE1BQU0sV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c2U6IGJvb2xlYW4gPSBmYWxzZSk6IENvb3JkaW5hdGVzIHtcbiAgICBpZiAodGhpcy5yZWR1Y2VyID09IHVuZGVmaW5lZCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdSZWR1Y2VyIHdhcyBub3QgZGVmaW5lZC4nKTtcbiAgICB9XG4gICAgbGV0IGVtYmVkZGluZyA9IHRoaXMucmVkdWNlci50cmFuc2Zvcm0oKTtcblxuICAgIGlmICh0cmFuc3Bvc2UpIHtcbiAgICAgIGVtYmVkZGluZyA9IHRyYW5zcG9zZU1hdHJpeChlbWJlZGRpbmcpO1xuICAgIH1cbiAgICByZXR1cm4gZW1iZWRkaW5nO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgZGltZW5zaW9uYWxpdHkgcmVkdWN0aW9uIG1ldGhvZHMgYXZhaWxhYmxlLlxuICAgKlxuICAgKiBAcmVhZG9ubHlcbiAgICogQG1lbWJlcm9mIERpbWVuc2lvbmFsaXR5UmVkdWNlclxuICAgKi9cbiAgc3RhdGljIGdldCBhdmFpbGFibGVNZXRob2RzKCkge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhBdmFpbGFibGVSZWR1Y2Vycyk7XG4gIH1cbn1cbiJdfQ== |
@@ -21,2 +21,2 @@ import { DimensionalityReducer } from '../reduce-dimensionality'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGltZW5zaW9uYWxpdHktcmVkdWNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpbWVuc2lvbmFsaXR5LXJlZHVjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHFCQUFxQixFQUFlLE1BQU0sMEJBQTBCLENBQUM7QUFHN0U7Ozs7Ozs7O0dBUUc7QUFDSCxTQUFTLFNBQVMsQ0FBQyxVQUFjLEVBQUUsTUFBb0IsRUFBRSxPQUFnQix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