• Tidak ada hasil yang ditemukan

Neural Networks and SVM

N/A
N/A
Protected

Academic year: 2024

Membagikan "Neural Networks and SVM"

Copied!
52
0
0

Teks penuh

(1)

Neural Networks and SVM

(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)

right-click

(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)

right-click

(20)
(21)
(22)
(23)
(24)
(25)
(26)

Try with different network topologies

(27)

Other Neural Network Software

§ SNNS- Stuttgart Neural Network Simulator

http://www-ra.informatik.uni-tuebingen.de/SNNS/

§Alyuda NeuroIntelligence

http://www.alyuda.com/neural-networks-software.htm

§ “backprop.cpp” from V. Rao and H. Rao C++ Neural Network and Fuzzy Logic

Backpropagation Simulation version 1

(28)

Using “backprop.cpp”

§Download the executable file as well as the example training and testing data sets

§The training and data set were obtained from the UCI Machine Learning Repository’s Wine Recognition Database

§The original data set was randomly divided to create the training (2/3) and testing (1/3) data sets

(29)

Using “backprop.cpp”

§ The training data set contains the input and

output values.

§The testing data set contains only the input values

(30)

Using “backprop.cpp”

§Please note the changes made to the output

values for this particular example.

– Class 1: output node 1 = 0; output node 2 = 0 – Class 2: output node 1 = 0; output node 2 = 1 – Class 3: output node 1 = 1; output node 2 = 1

(31)

Using “backprop.cpp” (TRAINING)

§ On the DOS prompt, type “backpropagation” to run the application

(32)

§ Enter “1” for TRAINING

Using “backprop.cpp” (TRAINING)

(33)

§ Enter the error tolerance and the learning rate

Using “backprop.cpp” (TRAINING)

(34)

Using “backprop.cpp” (TRAINING)

§ Enter the maximum number of cycles. One cycle is one pass through the data set.

(35)

Using “backprop.cpp” (TRAINING)

§ Enter the number of layers for your network.

(36)

Using “backprop.cpp” (TRAINING)

§ Enter the layer sizes separated by spaces.

§ IMPORTANT: the number of input and output nodes must match the training data (on the “training.dat” file)

(37)

Using “backprop.cpp” (TRAINING)

§ Run the neural network. Weights were saved on the

“weights.dat” file. They will be used later during testing

(38)

Using “backprop.cpp” (TESTING)

§ On the DOS prompt, type “backpropagation” to run the application again

(39)

Using “backprop.cpp” (TESTING)

§ Enter “0” for TESTING

(40)

Using “backprop.cpp” (TESTING)

§ Enter the number of layers for your network.

IMPORTANT: This must be the same used for training

(41)

Using “backprop.cpp” (TESTING)

§ Enter the layer sizes separated by spaces.

IMPORTANT: This must be the same used for training

(42)

Using “backprop.cpp” (TESTING)

§ Run the neural network. Output results from the testing data set were saved on the “output.dat” file.

(43)

Using “backprop.cpp” (OUTPUT)

(44)

SVMlight (http://svmlight.joachims.org/)

(45)

Using “SVMlight

§Download the executable file as well as the example training and testing data sets

–Reference : T. Joachims, Making large-Scale SVM Learning Practical. Advances in Kernel Methods -

Support Vector Learning, B. Schölkopf and C. Burges and A. Smola (ed.), MIT-Press, 1999.

(46)

Using “SVMlight

§Training file (“trainsvm.dat”):

(47)

Using “SVMlight

§Testing file (“testsvm.dat”):

(48)

Using “SVMlight” (TRAINING)

svm_learn is called with the following parameters:

svm_learn [options] trainingexamples_file model_file

(49)

Using “SVMlight” (TRAINING)

Run svm_learn. The model is saved at the “model_file”.

Later, this file will be used for testing

(50)

Using “SVMlight” (TESTING)

svm_classify is called with the following parameters:

svm_classify [options] testingexamples_file model_file output_file

(51)

Using “SVMlight” (TESTING)

Run svm_classify. Results will be saved at the output_file”

(52)

Using “SVMlight” (RESULTS)

§Output file (“outputsvm.dat”):

Referensi

Dokumen terkait

● Training is the act of presenting the network with some sample data and modifying the weights to better approximate the desired functionn. ● There are two main types

Generally, in developing the prediction model based on BPNN, the percentages of the data used for training, testing and validation are 70%, 15% and 15%

Untuk mengetahui hasil akurasi metode Support Vector Machine (SVM) pada klasifikasi pendonor darah menggunakan dataset RFMTC rasio data testing dan data trainging

Terdapat dua jenis data yang akan digunakan dalam sistem ini, yaitu data testing dan training. Data training digunakan untuk mencari bobot akhir yang paling

The use of ANN as the detection method in IDS conducted in five phases of research namely compose training/testing dataset, pre-process training/testing dataset,

The testing process is carried out by testing test data on the training architecture model. Testing is done based on the study period class using the confusion matrix table.

Custom CNN Confusion Matrix of Water Content Parameters MobileNetV2 Architecture The MobileNetV2 architecture training and testing phase resulted in training data and validation data

Outline Outline 3.1 Introduction 3.2 Training Single TLUs ¨ Gradient Descent ¨ Widrow-Hoff Rule ¨ Generalized Delta Procedure 3.3 Neural Networks ¨ The Backpropagation Method ¨