Alfa Heryudono
MTH540/440 - EAS621/622 - DSC550 Discussion Session
September 23, 2020
Topic: Simple Vector Training Numerical Experiment.
See the discussion video in mycourses.

ClearAll["Global`*"]
input={{0,0,1},{1,1,1},{1,0,1},{0,1,1}}
output={0,1,1,0}
asso=Thread[input->output]

net=NetChain[{LinearLayer[],ElementwiseLayer["Sigmoid"]}]
trained=NetTrain[net,asso]
r=trained[{1,0,0}]