created neural network
inlayer and outlayer to be configured according to dataset