Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created October 23, 2017 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/ea349fda26f6ba6c9574e3bb519fead3 to your computer and use it in GitHub Desktop.
Save matthieu-D/ea349fda26f6ba6c9574e3bb519fead3 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
declare var require;
var brain = require('brain');
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
net;
constructor() {
this.trainXOR();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment