GithubHelp home page GithubHelp logo

loretoparisi / tensorflow-node-examples Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 2.0 64.99 MB

Tensorflow Node.js Examples

JavaScript 96.42% Python 1.77% TypeScript 1.81%
tensorflow tensorflow-node lstm sentiment deep-learning machine-learning

tensorflow-node-examples's Introduction

tensorflow-node-examples

Tensorflow.js Node.js Examples. Inspired from official tfjs-examples.

Disclaimer

Tensorflow.js for Node.js (namely tfjs-node) is currently in development status, see here.

Why?

Because officiale Tensorflow.js examples are mostly written in TypeScript or use the async/await ES2017 paradigma, while the most of node modules are not.

Node.js Examples

Getting Started

Tf.js Hello World for Node.js: training and predict.

Sentiment

Load and predict sentiment from a pre-trained sentiment model with tf.loadModel.

LSTM

A simple LSTM train example that shows accuracy, loss, while training.

Translation

A bilinear LSTM (bi-LSTM) for EN-FR translation with a local hosted saved model. Full examples: load model, translate sentences.

LSTM Text Generation

A bi-LSTM model that learns to write as Nietzsche or your favorite text. Work in progress, so far it loads the saved model only.

Object Detection ::new::

An example that show how to load a Tensorflow SavedModel, without any conversion, using tf.node.loadSavedModel. It loads the model, predict the bounding boxes of detection objects and write to an image using a canvas.

Can I use async/await without ECMA2017

Yes! Definitively you can. See async2promise.js. You have here defined two function the __awaiter and the __generator, that mimic the async and await using a Promise. Enjoy ECMA5.

tensorflow-node-examples's People

Contributors

alsora avatar dependabot[bot] avatar loretoparisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.