Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.04 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.04 KB

Neural Networks and Learning Machines

Double-Moon Structures

radius = 10; width = 4; theta = 25; distance = -4;
N = 400; train2total = 0.75; drawPatterns = true;

[train, test] = doubleMoonStructure( radius, width, theta, distance, ...
                                     N, train2total, drawPatterns );
TrainDataset TestDataset

Rosenblatt's Perceptron

Train Perceptron

eta = 1;            
w0 = [ 0, 0, 0 ];   

weights = trainPerceptron(train, eta, w0, true);
TrainPerceptron

Test Perceptron

[class1, class2, accuracy] = testPerceptron(test, weights);
TestPerceptron