Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. input = {{0, 0, 1}, {1, 1, 1}, {1, 0, 1}, {0, 1, 1}};
  2. output = {0, 1, 1, 0};
  3. asso = Thread[input -> output];
  4. trained = NetTrain[LinearLayer[], asso]
  5. trained[{1, 0, 0}]
Add Comment
Please, Sign In to add comment