0.2.9 • Published 5 years ago

keras-predict v0.2.9

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

keras-predict

A Nodejs Native addons to run Keras ML model.

Run Keras ML model via frugally-deep as a native Nodejs Addons.

Usage:

  • first install frugally-deep.
  • compile your keras model :
    python3 frugally-deep/keras_export/convert_model.py keras_model.h5 fdeep_model.json
  • path the size of your ML input and converted ML path to predict function.
    const predict = require('keras-predict')
    const path = require('path');
    const mlModelPath = path.resolve(__dirname, "fdeep_model.json");
    const testCase = [...];
    predict.predict(120, mlModelPath, testCase, (err, predict) => {
           if (err) {
               console.error(err)
           } else {
               console.dir(predict.map(Math.round))
           }
       })
    }
  • A working example avialable at example folder.
  • This module tested only on ArchLinux.

Amin Aghabeiki.

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago