Skip to content

Instantly share code, notes, and snippets.

@LtAstros
LtAstros / iris-tensorflow-js.js
Created June 21, 2019 16:50 — forked from learncodeacademy/iris-tensorflow-js.js
Solving Iris with Tensorflow.js and Iris JSON dataset
import * as tf from "@tensorflow/tfjs"
import "@tensorflow/tfjs-node"
import iris from "./iris.json"
import irisTesting from "./iris-testing.json"
// convert/setup our data
const trainingData = tf.tensor2d(iris.map(item => [
item.sepal_length, item.sepal_width, item.petal_length, item.petal_width,
]))
const outputData = tf.tensor2d(iris.map(item => [
<!DOCTYPE html>
<html>
<head>
<title>My first If/Else statment</title>
</head>
<body>
<h1></h1>
<input id="username" placeholder="username">
<input id="password" placeholder="password" type="password">
<button> submit</button>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<img src="https://mail.google.com/mail/u/0?view=fimg&th=15f2ce08187ba265&attid=0.1&disp=thd&attbid=ANGjdJ8txRbPaPdkjeo10qFfJot83xRNEST4Tvf4lrATEe3L2OMDxKT17owpn-V6xIj2x6peGsfmzJptvt4046eTBt-nIyv5Qtv7wtIW0k--40dKOXsQquNV8X6rGJs&sz=w226-h166&zw">
<a href="https://gist.github.com/LtAstros/765d89d41cf8d7b7e0895508eae56cf2">Kim and Kanye Mad Libs</a>
<p>Hello, My name is Costin Smilovici, I am a student at Burton and at ScriptEd. Currently I am learning coding and bettering my professional skills at ScriptEd. My main hobby is playing video games of which I am currently playing Hearthstone.</p>
</body>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<img src="https://mail.google.com/mail/u/0?view=fimg&th=15f2ce08187ba265&attid=0.1&disp=thd&attbid=ANGjdJ8txRbPaPdkjeo10qFfJot83xRNEST4Tvf4lrATEe3L2OMDxKT17owpn-V6xIj2x6peGsfmzJptvt4046eTBt-nIyv5Qtv7wtIW0k--40dKOXsQquNV8X6rGJs&sz=w226-h166&zw">
<a href="https://gist.github.com/LtAstros/765d89d41cf8d7b7e0895508eae56cf2">Kim and Kanye Mad Libs</a>
<p>Hello, My name is Costin Smilovici, I am a student at Burton and at ScriptEd. Currently I am learning coding and bettering my professional skills at ScriptEd. My main hobby is playing video games of which I am currently playing Hearthstone.</p>
</body>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="box">
<input class="condition" placeholder="A Medical Condition">
<button class="btn1">Click</button>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h3>How many inches tall are you?</h3>
<input><button>Analyze</button>
<p id="message"></p>
</body>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="blop1" class="blops"></div>
<div id="blop2" class="blops"></div>
<div id="blop3" class="blops"></div>
<div id="blop4" class="blops"></div>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="blop1" class="blops"></div>
<div id="blop2" class="blops"></div>
<div id="blop3" class="blops"></div>
<div id="blop4" class="blops"></div>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="blop1" class="blops"></div>
<div id="blop2" class="blops"></div>
<div id="blop3" class="blops"></div>
<div id="blop4" class="blops"></div>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<img id="pic" src="https://goo.gl/pqaYFe">
</body>
</html>