0.0.2 • Published 2 years ago

flowspace.js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

An all in one data visualization tool for TensorFlow.js developers

GitHub top language   GitHub package.json version   npm   GitHub   GitHub last commit (branch)   GitHub contributors   GitHub Repo stars  

Problem

Despite the fact that machine learning plays a crucial part in advancing the tech industry, many developers view it as intimidating due to its complexity, which consequently discourages many developers from engaging with it. To address the problem, Google’s Brain Team developed TensorFlow.js in 2018 to help bring machine learning to JavaScript developers with little to no experience in machine learning. While TensorFlow.js is simplified, it lacks direct support for Tensorboard, the visualization tool for its counterpart, TensorFlow.

Solution

FlowSpace is developed using agile methodology in collaboration with the tech accelerator OS Labs (opensourcelabs.io)


  1. Install our npm package in your terminal.
npm install flowspace.js
  1. Import HandShake class from the FlowSpace node_modules.
import { HandShake } from "flowspace";
  1. Declare your variable for the TensorFlow createModel function.
const model = createModel();
  1. Instantiate a new instance of the HandShake class, passing in your model object.
const visualizer = new HandShake(model);
  1. Ensure when training the model, pass the lossCallback method from the HandShake instance into the fit method.
    ## Example below ##

    model.fit(trainingFeatureTensor, trainingLabelTensor, {
		epochs: 20,
		callbacks: {
			onEpochEnd: visualizer.lossCallback
		},
	});
  1. When ready, simply run the FlowSpace functionality in your terminal.
npx flowspace

MIT License

Copyright (c) 2022 OSLabs Beta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.