0.0.1-beta.4 • Published 3 years ago
@snoopylion/spider v0.0.1-beta.4
@fedml/spider
Collaborative Learning from Scattered Data on Browser
Usage
Install it with any node module manager
# npm npm install @fedml/spider -S # yarn yarn add @fedml/spider -S # pnpm pnpm install @fedml/spider -SInstall peer dependencies
npm i @tensorflow/tfjs @tensorflow/tfjs-vis -SImport
fedml_trainfunction to start trainimport { fedml_train } from '@fedml/spider' // prepare running args const client_id = YOUR_CLIENT_ID const run_args = await AnyFunctionFetchRunArgs(...) // start training fedml_train(run_args, client_id, { // customDataLoader?: <Optional: Your custom data loader> })API
type DataLoader = ( args: any, client_id: any, trainBatchSize: number, testBatchSize: number ) => Promise<{ trainData: any trainDataLabel: any testData: any testDataLabel: any }> interface Options { customDataLoader?: DataLoader } function fedml_train( run_args: any, client_id: string | number, options?: Options ): Promise<void>
Contributing
We recommend that you use pnpm(https://pnpm.io/installation) as the package manager.
catalog
src: Here the source codes, andsrc/index.tsis the entry file for rollup bundle.dist: The rollup bundle artifacts is output here. This will be not be committed to the GitHub codebase, however, will be released to npm.
script
pnpm install: Bootstrap dependencies of this project.pnpm run dev: Starting rollup bundler withwatchmode.pnpm run lint:fix: Format source code style undersrcfolder with eslint and prettier.pnpm run release(Authorization required ): Release a upgraded version package to npm, then mark and push a released tag to GitHub.
0.0.1-beta.4
3 years ago
0.0.1-beta.3
3 years ago
0.0.1-beta.2
3 years ago
0.0.1-beta.1
3 years ago
0.0.1-beta.0
3 years ago
0.0.1-beta
3 years ago