This project is modified from the Tensorflow.js examples from the following url:
https://github.com/tensorflow/tfjs-examples
- https://rawgit.com/ccckmit/tfjs-chrome/master/mnist/index.html
- https://rawgit.com/ccckmit/tfjs-chrome/master/polynomial-regression/index.html
No ES6 syntax preprocessing is needed. Just copy the example folder onto a server and visit http://server:port/folder/index.html by any browser that support async/await javascript syntax (Chrome 65.0.3325.181 on iMac was tested)
You may use live-server to run server on localhost as following.
$ yarn global add live-server
$ cd mnist
csienqu-teacher:mnist csienqu$ live-server
Serving ".../mnist" at http://127.0.0.1:8080
Ready for changes
This rentains a set of examples implemented in TensorFlow.js.pository co
Each example directory is standalone so the directory can be copied to another project.
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/