Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Machine Learning with TensorFlow.js

You're reading from   Hands-On Machine Learning with TensorFlow.js A guide to building ML applications integrated with web technology using the TensorFlow.js library

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781838821739
Length 296 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Kai Sasaki Kai Sasaki
Author Profile Icon Kai Sasaki
Kai Sasaki
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: The Rationale of Machine Learning and the Usage of TensorFlow.js
2. Machine Learning for the Web FREE CHAPTER 3. Importing Pretrained Models into TensorFlow.js 4. TensorFlow.js Ecosystem 5. Section 2: Real-World Applications of TensorFlow.js
6. Polynomial Regression 7. Classification with Logistic Regression 8. Unsupervised Learning 9. Sequential Data Analysis 10. Dimensionality Reduction 11. Solving the Markov Decision Process 12. Section 3: Productionizing Machine Learning Applications with TensorFlow.js
13. Deploying Machine Learning Applications 14. Tuning Applications to Achieve High Performance 15. Future Work Around TensorFlow.js 16. Other Books You May Enjoy

The Layers API

In the previous section, we described how to use the Core API of TensorFlow.js, which allows us to construct any operation graph as we like. But this is not always the best choice. You may find yourself in a situation where a high-level API is more relevant when we want to build an application quickly. The Layers API is a Keras-like high-level API that's used to create models in an intrinsic way. You may already be familiar with the style of the Layers API if you've used Keras to construct machine learning models in the past.

There are two ways we can construct a machine learning model with the Layers API:

  • By using the sequential model API
  • By using the functional model API

As you may have already noticed, the Layers API has been made to look similar to the Keras API. Those of you who are already familiar with Keras will be able to use the Layers API...

You have been reading a chapter from
Hands-On Machine Learning with TensorFlow.js
Published in: Nov 2019
Publisher: Packt
ISBN-13: 9781838821739
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime