Changing to sqlite and resetting,
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
((Drupal) => {
|
||||
Drupal.behaviors.button = {
|
||||
attach(context) {
|
||||
console.log("hello");
|
||||
// console.log("hello");
|
||||
},
|
||||
};
|
||||
})(Drupal);
|
||||
|
||||
@@ -24,9 +24,9 @@ predict_event:
|
||||
js/predictEvent.js: { attributes: { await: true }}
|
||||
|
||||
brainjs:
|
||||
version: 2.0.0
|
||||
version: 24
|
||||
js:
|
||||
https://unpkg.com/brain.js@2.0.0-beta.23/dist/browser.js: { type: external, attributes: { async: true }}
|
||||
https://unpkg.com/brain.js@2.0.0-beta.24/dist/browser.js: { type: external, attributes: { async: true }}
|
||||
|
||||
articles:
|
||||
js:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
document.addEventListener('readystatechange', event => {
|
||||
// When HTML/DOM elements are ready:
|
||||
if (event.target.readyState === "interactive") { //does same as: ..addEventListener("DOMContentLoaded"..
|
||||
if (event.target.readyState === "interactive") {
|
||||
highlightFightHistory();
|
||||
let train = false;
|
||||
if (train) {
|
||||
@@ -32,7 +31,7 @@ function highlightFightHistory() {
|
||||
|
||||
function trainTheBrain() {
|
||||
const config = {
|
||||
iterations: 5000,
|
||||
iterations: 500,
|
||||
log: true,
|
||||
logPeriod: 100,
|
||||
binaryThresh: 0.5,
|
||||
|
||||
Reference in New Issue
Block a user