Multi-Layer Perceptron (MLP) Code: Please click the following multi-layer perceptron (MLP) code including training and classification in the same file.
Tutorial: Understanding Multi-Layer Perceptron (MLP) .. How it Works.
Data Sets: UCI Machine Learning Repository
Tuesday, March 28, 2017
Friday, March 10, 2017
Perceptron Challenge

perceptron code to classify a new data set. The information of the data set is listed in the following:
- No.of classes: 2 (class 0 and 1)
- No. of training data: 2000
- No. of testing data: 400
- No. of features: 3 (feature vector is in 3-dimensional space)
- Files: training.txt, and testing.txt
Since the original perceptron is only for 2-dimensional
data, you need to identify and modify all the dimension-related code to
make it work. After you finishing the classification, visualize your training and testing data, and the decision boundary using Grapher in Mac laptop (see example). Our deadline for this challenge is March 17, 2017 (Friday).
The Artificial Neural Network (ANN) presentations are available in the following:
The Perceptron code can be found at the link.
The Artificial Neural Network (ANN) presentations are available in the following:
The Perceptron code can be found at the link.
Friday, March 3, 2017
Tuesday, February 14, 2017
MATLAB Serial Monitor
% MATLAB-Arduino Serial Port Monitor
clear
clc
% Defined Serial Port
serialPort = '/dev/cu.usbmodem1421'; % define COM port #
%Open Serial COM Port
s = serial(serialPort)
fopen(s);
delay = .01; % make sure sample faster than resolution
while 1 %Loop when Plot is Active
dat = fscanf(s,'%f'); %Read Data from Serial as Float
if(~isempty(dat) && isfloat(dat)) %Make sure Data Type is Correct
disp (dat);
end
%Allow MATLAB to Update Plot
pause(delay);
end
%Close Serial COM Port and Delete useless Variables
fclose(s);
clear count dat delay s serialPort;
clear
clc
% Defined Serial Port
serialPort = '/dev/cu.usbmodem1421'; % define COM port #
%Open Serial COM Port
s = serial(serialPort)
fopen(s);
delay = .01; % make sure sample faster than resolution
while 1 %Loop when Plot is Active
dat = fscanf(s,'%f'); %Read Data from Serial as Float
if(~isempty(dat) && isfloat(dat)) %Make sure Data Type is Correct
disp (dat);
end
%Allow MATLAB to Update Plot
pause(delay);
end
%Close Serial COM Port and Delete useless Variables
fclose(s);
clear count dat delay s serialPort;
Friday, February 3, 2017
Arduino & MATLAB
Please use the following links to browse through the Arduino & MATLAB resource:
- Arduino Support from MATLAB: https://www.mathworks.com/hardware-support/arduino-matlab.html.
- MATLAB GUI Basics: https://www.youtube.com/playlist?list=PLPhi9dVsEVfZOlbIPsrQx0drJlBX9T15r.
- Plotting in MATLAB: https://www.youtube.com/playlist?list=PLPhi9dVsEVfbNFWBDsgELOuKMob8qIr8S.
Subscribe to:
Posts (Atom)