Skip to content

Latest Release for browser environment

Compare
Choose a tag to compare
@risenW risenW released this 14 Feb 17:25
· 655 commits to master since this release
3f6d547
  • Fix browser tag issue and returns back to specific versioning instead of @latest
  • This release fixes some runtime issue regarding @babel/runtime
  • Smaller size in this version. From ~8mb to about ~5mb
  • Release now ships with exported version of tensorflowjs (2.8.5). This fixes the double dependency issue when building ML models, as you no longer need to install/import tensorflowjs separately.

To use tensoflowjs, you can reference it from danfo as shown below:

const tf = dfd.tf //contains a reference to the tensorflowjs-node library

 const model = tf.sequential();
 model.add(tf.layers.dense({ inputShape: [7], units: 124, activation: 'relu', kernelInitializer: 'leCunNormal' }));
 model.add(tf.layers.dense({ units: 64, activation: 'relu' }));
 model.summary();