Git Product home page Git Product logo

brainjsreactnative's Introduction

brain.js React Native Examples

In this project, you will find an trained-model.json file as well as, a index.js file. You may use the index.js file to train new models, currently this example, is trained on 10 different Lee Kernaghan songs, and 10 different ACDC songs. The example demonstrates how a muti-layer Neural Network, is able to classify the artist, by analysing song lyrics.

example

Files

  • index.js
  • trained-model.json

BrainJSReactNativeExampleApp

In the above mentioned directory, you will find a working react native example app, the takes in song lyrics, and classifies them accordantly.

Setting up a new React Native project to work with brain.js

  1. npm install in the main directory

  2. npm install in the BrainJSReactNativeExample directory

  3. navigate to the package install in your node modules folder, navigate to train-stream.js file under brain.js --> dist and remove the require statement for stream, it should look like this:

    var _stream = require('stream');

(don't worry about removing this, this is a dependant library for the training aspect of brain.js, but we won't be training on the user's phone, so this is not needed.)

Also, remove the following line at the bottom of file, below the return statement:

(_stream.Writable);

brainjsreactnative's People

Contributors

robertleeplummerjr avatar jusso-dev avatar

Watchers

James Cloos avatar Gabriel Paiva avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.