This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Load TensorFlow.js --> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.2"> </script> | |
<!-- Place your code in the script tag below. You can also use an external .js file --> | |
<script> | |
// Notice there is no 'import' statement. 'tf' is available on the index-page | |
// because of the script tag above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Tensor Flow</title> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.6.1"></script> | |
<script> | |
const nr_epochs=2048; // higher=better but slower | |
var tfinterface; | |
const model = tf.sequential(); | |
OlderNewer