Skip to content

Instantly share code, notes, and snippets.

View NatuMyers's full-sized avatar
🎯
Focusing

Natu Myers NatuMyers

🎯
Focusing
View GitHub Profile
<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.
@NatuMyers
NatuMyers / tfexample1.html
Last active December 10, 2020 15:23
Tensorflow.js Linear Regression
<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();