% Simple perceptron for OR gate P = [0 0 1 1; 0 1 0 1]; T = [0 1 1 1]; net = perceptron; net = train(net, P, T); Y = sim(net, P); disp('Output:'); disp(Y);

% Train the network net.trainParam.epochs = 100; net.trainParam.lr = 0.1; net = train(net, inputs, targets);

: Leveraging forecasting for bankruptcy prediction and market trends. Getting Started with MATLAB

Newsletter
Abonare
Scroll