This commit is contained in:
Sebastian Seedorf
2019-01-10 13:08:06 +01:00
commit 096f2f1c4b
59 changed files with 44318 additions and 0 deletions

13
public/js/neuralnet.js Normal file
View File

@@ -0,0 +1,13 @@
console.log("hello");
tf.loadModel("/data/adadelta10-1024tanh-decoder-tfmodel/model.json")
.then((model) => {
console.log("HURRAY");
var prediction = model.predict(tf.tensor2d([[0.0, 0.0]], [1, 2]));
prediction.data().then((pred) => {
console.log("prediction", pred);
}).catch((err2) => console.error("err2", err2));
}).catch((err) => {
console.error(err);
});