SlideShare a Scribd company logo
Machine Learning
                                      Homework 2-1
                                 Due Tuesday, May 3, 2005

    1.   Non-linear auto-regression – the Mackey-Glass equation.

         In this exercise you will use a neural net to predict the dynamics of a chaotic time
         series generated by the Mackey-Glass delay differential equation. The data are in
         the files mack2_tr.dat , mack2_val.dat, and mack2_tst.dat on
         the class web page. There is a description of the data in the file mack2.txt. To
         get a look at the behavior of this time series, plot the first column of data.

         For your experiments, use the Netlab toolbox for Matlab. Both Matlab and the
         Netlab package are on the OGI-CSEE and PSU-CS education compute servers.
         The idea behind prediction of univariate time series is that their past behavior
         provides the information needed to predict future behavior. For linear systems
         and models, this is the basis for autoregressive (AR) time series models. For
         nonlinear systems, the notion of predictability from the past is formally captured
         by Taken’s theorem.

         Taken’s theorem tells us that we can represent the dynamical state of the system
         that generated the observed time series x(t) by embedding the time series in a
         vector

                v(t ) = [ x(t ), x(t − ∆), x(t − 2 ∆), x(t − 3 ∆), ...x(t − (m − 1)∆ ) ]

         where ∆ is the embedding lag, and m is the embedding dimension.

The data in the files is embedded for you, using a lag and dimension known to provide
decent results for this data set.

The data consists of five columns. The first four are the lagged values used as inputs, the

                     x(t ) x(t − 6) x(t − 12) x(t − 18)           x(t + 85)
last column is the value to be predicted:

Thus we use the current value x(t), and three previous values to predict the value in the
future x(t+85).
Your assignment is to apply several neural nets to this prediction problem and obtain the
best results you can. You are to use mack2_tr.dat to actually optimize the network
weights. When you have arrived at what you think is your best network architecture
(size, optimization …), then run the test data mack2_tst.dat through your models.
(This is noise-free data, so you will not see overfitting.)

First fit a single linear node (linear AR model) to the problem. You can prepare, train,
and evaluate the one-node linear model using the NetLab functions glm, glmtrain,
and glmfwd. Plot the prediction results (on mack2_test.dat) and also the data on the
same plot so you can compare the shapes visually. Measure and report the mean square
error on the test data also.

Then move on to a network with a single layer of sigmoidal hidden nodes and a linear
output. Experiment with the number of hidden nodes, and with different optimizers. Try
the scaled conjugate gradient (scg)and the quasi-Newton (quasinew) optimizers.
You can try quite large networks – up to 50 hidden units -- although they will take a bit
longer to train them.

As for the linear node, plot network predictions along with the results. Does the non-
linear neural net do significantly better than the linear model? Report the best result
you’ve achieved on the test data. Plot the prediction along with the data and compare
visually with the linear node prediction.



1. Classification – Iris Data

   For this exercise, you will train a neural network to classify the three different iris
   species in the famous Fisher iris data. The data are in the files IrisDev.dat (the
   development data) and IrisTest.dat (the test data). The files contain the input
   features in columns one through four, and in the last three columns, the class of each
   example encoded in a one-of-three representation

                   T = (0 0 1) for class 1
                   T = (0 1 0) for class 2
                   T = (1 0 0) for class 3

   You will need to construct a network with four inputs and three outputs. Use a
   logistic unit in the output layer. You can compute the classification accuracy with the
   Netlab function confmat, which computes both the overall classification accuracy
   (expressed as percent), and writes out a confusion matrix.

   The rows of a confusion matrix contain the true class labels, while the columns are
   the network assignments. For example, suppose we have a three-class problem and a
   classifier that generates the following confusion matrix:
C1      C2     C3
         C1     44       5      1
         C2      1      39     10
         C3      0       9     41

For this example, 44 of 50 C1 example were correctly classified, 5 were mislabeled
C2, and 1 was mislabeled C3. The total number of misclassified examples is the sum
of the off-diagonal elements, i.e. 26. The error rate is 0.173.


Segment the development data set into five segments of 15 examples, and use a 5-
fold cross-validation to pick the network size. Do you see any overfitting? When
you have what you believe is the best network, run the test data through the network
and report the classification accuracy, and include the confusion matrix.

More Related Content

What's hot

K means clustering | K Means ++
K means clustering | K Means ++K means clustering | K Means ++
K means clustering | K Means ++
sabbirantor
 
Hierarchical clustering
Hierarchical clusteringHierarchical clustering
Hierarchical clustering
Abdullah Masoud
 
Neural Networks: Principal Component Analysis (PCA)
Neural Networks: Principal Component Analysis (PCA)Neural Networks: Principal Component Analysis (PCA)
Neural Networks: Principal Component Analysis (PCA)
Mostafa G. M. Mostafa
 
Unsupervised learning (clustering)
Unsupervised learning (clustering)Unsupervised learning (clustering)
Unsupervised learning (clustering)
Pravinkumar Landge
 
Lecture 1 an introduction to data structure
Lecture 1   an introduction to data structureLecture 1   an introduction to data structure
Lecture 1 an introduction to data structureDharmendra Prasad
 
Probabilistic PCA, EM, and more
Probabilistic PCA, EM, and moreProbabilistic PCA, EM, and more
Probabilistic PCA, EM, and more
hsharmasshare
 
Clustering
ClusteringClustering
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...butest
 
Efficient Sparse Coding Algorithms
Efficient Sparse Coding AlgorithmsEfficient Sparse Coding Algorithms
Efficient Sparse Coding Algorithms
Anshu Dipit
 
Cure, Clustering Algorithm
Cure, Clustering AlgorithmCure, Clustering Algorithm
Cure, Clustering Algorithm
Lino Possamai
 
New Approach for K-mean and K-medoids Algorithm
New Approach for K-mean and K-medoids AlgorithmNew Approach for K-mean and K-medoids Algorithm
New Approach for K-mean and K-medoids Algorithm
Editor IJCATR
 
K-Means clustring @jax
K-Means clustring @jaxK-Means clustring @jax
K-Means clustring @jax
Ajay Iet
 
Enhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial DatasetEnhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial Dataset
AlaaZ
 
Application of Matrices in real life | Matrices application | The Matrices
Application of Matrices in real life | Matrices application | The MatricesApplication of Matrices in real life | Matrices application | The Matrices
Application of Matrices in real life | Matrices application | The Matrices
SahilJhajharia
 
Pca
PcaPca
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structure
Rai University
 
Data Science - Part VII - Cluster Analysis
Data Science - Part VII -  Cluster AnalysisData Science - Part VII -  Cluster Analysis
Data Science - Part VII - Cluster Analysis
Derek Kane
 
Types of clustering and different types of clustering algorithms
Types of clustering and different types of clustering algorithmsTypes of clustering and different types of clustering algorithms
Types of clustering and different types of clustering algorithms
Prashanth Guntal
 
Mahoney mlconf-nov13
Mahoney mlconf-nov13Mahoney mlconf-nov13
Mahoney mlconf-nov13
MLconf
 

What's hot (20)

K means clustering | K Means ++
K means clustering | K Means ++K means clustering | K Means ++
K means clustering | K Means ++
 
Hierarchical clustering
Hierarchical clusteringHierarchical clustering
Hierarchical clustering
 
Neural Networks: Principal Component Analysis (PCA)
Neural Networks: Principal Component Analysis (PCA)Neural Networks: Principal Component Analysis (PCA)
Neural Networks: Principal Component Analysis (PCA)
 
Unsupervised learning (clustering)
Unsupervised learning (clustering)Unsupervised learning (clustering)
Unsupervised learning (clustering)
 
Lecture 1 an introduction to data structure
Lecture 1   an introduction to data structureLecture 1   an introduction to data structure
Lecture 1 an introduction to data structure
 
Probabilistic PCA, EM, and more
Probabilistic PCA, EM, and moreProbabilistic PCA, EM, and more
Probabilistic PCA, EM, and more
 
Clustering
ClusteringClustering
Clustering
 
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
 
Efficient Sparse Coding Algorithms
Efficient Sparse Coding AlgorithmsEfficient Sparse Coding Algorithms
Efficient Sparse Coding Algorithms
 
Cure, Clustering Algorithm
Cure, Clustering AlgorithmCure, Clustering Algorithm
Cure, Clustering Algorithm
 
New Approach for K-mean and K-medoids Algorithm
New Approach for K-mean and K-medoids AlgorithmNew Approach for K-mean and K-medoids Algorithm
New Approach for K-mean and K-medoids Algorithm
 
K-Means clustring @jax
K-Means clustring @jaxK-Means clustring @jax
K-Means clustring @jax
 
Enhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial DatasetEnhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial Dataset
 
Application of Matrices in real life | Matrices application | The Matrices
Application of Matrices in real life | Matrices application | The MatricesApplication of Matrices in real life | Matrices application | The Matrices
Application of Matrices in real life | Matrices application | The Matrices
 
Pca
PcaPca
Pca
 
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structure
 
Pca analysis
Pca analysisPca analysis
Pca analysis
 
Data Science - Part VII - Cluster Analysis
Data Science - Part VII -  Cluster AnalysisData Science - Part VII -  Cluster Analysis
Data Science - Part VII - Cluster Analysis
 
Types of clustering and different types of clustering algorithms
Types of clustering and different types of clustering algorithmsTypes of clustering and different types of clustering algorithms
Types of clustering and different types of clustering algorithms
 
Mahoney mlconf-nov13
Mahoney mlconf-nov13Mahoney mlconf-nov13
Mahoney mlconf-nov13
 

Viewers also liked

TZA058_CARE_Midterm_Evaluation Final Report
TZA058_CARE_Midterm_Evaluation Final ReportTZA058_CARE_Midterm_Evaluation Final Report
TZA058_CARE_Midterm_Evaluation Final ReportJoke Hoogerbrugge
 
Innovación Educativa parte II - Tendencias Pedagógicas
Innovación Educativa parte II -  Tendencias PedagógicasInnovación Educativa parte II -  Tendencias Pedagógicas
Innovación Educativa parte II - Tendencias Pedagógicas
Jaime Claros
 
La competència digital del professorat (model TPACK)
La competència digital del professorat (model TPACK)La competència digital del professorat (model TPACK)
La competència digital del professorat (model TPACK)
Lirios13
 
NOAC use - brief handout
NOAC use - brief handoutNOAC use - brief handout
NOAC use - brief handout
Pei-shen (James) Wu
 
ベトナム人の新聞・雑誌・読書の習慣についての調査
ベトナム人の新聞・雑誌・読書の習慣についての調査ベトナム人の新聞・雑誌・読書の習慣についての調査
ベトナム人の新聞・雑誌・読書の習慣についての調査
Q&Me Vietnam Market Research
 
Machine Learning
Machine LearningMachine Learning
Machine Learningbutest
 
MAPATO - PASADA Complete Document
MAPATO - PASADA Complete DocumentMAPATO - PASADA Complete Document
MAPATO - PASADA Complete DocumentJoke Hoogerbrugge
 
Robert mueller pitch
Robert mueller pitchRobert mueller pitch
Robert mueller pitch
Robert Mueller
 
Review of use of learning and observation in ITE lesson study
Review of use of learning and observation in ITE lesson studyReview of use of learning and observation in ITE lesson study
Review of use of learning and observation in ITE lesson study
Philwood
 
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
Lucien C.H. Lin
 
Phun phủ nhiệt
Phun phủ nhiệtPhun phủ nhiệt
Phun phủ nhiệt
Xuân Đạt
 
Historia de la alhòndiga de granaditas 150909
Historia de la alhòndiga de granaditas 150909Historia de la alhòndiga de granaditas 150909
Historia de la alhòndiga de granaditas 150909
Fabiola Aranda
 
Internship powerpoint
Internship powerpointInternship powerpoint
Internship powerpointKhai Win Er
 
ベトナムの歯磨き・歯ブラシ調査
ベトナムの歯磨き・歯ブラシ調査ベトナムの歯磨き・歯ブラシ調査
ベトナムの歯磨き・歯ブラシ調査
Q&Me Vietnam Market Research
 
Vietnamese oral research
Vietnamese oral researchVietnamese oral research
Vietnamese oral research
DI Marketing
 
Germany and German literature
Germany and German literatureGermany and German literature
Germany and German literature
Ezr Acelar
 
Backpacking is the latest modern travel trend
Backpacking is the latest modern travel trendBackpacking is the latest modern travel trend
Backpacking is the latest modern travel trend
DI Marketing
 
Los generos en la pintura
Los generos en la pinturaLos generos en la pintura
Los generos en la pintura
Inma Contreras
 
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...Aviroop Banik
 
Movimientos del cuello
Movimientos del cuelloMovimientos del cuello
Movimientos del cuello
Natt-N
 

Viewers also liked (20)

TZA058_CARE_Midterm_Evaluation Final Report
TZA058_CARE_Midterm_Evaluation Final ReportTZA058_CARE_Midterm_Evaluation Final Report
TZA058_CARE_Midterm_Evaluation Final Report
 
Innovación Educativa parte II - Tendencias Pedagógicas
Innovación Educativa parte II -  Tendencias PedagógicasInnovación Educativa parte II -  Tendencias Pedagógicas
Innovación Educativa parte II - Tendencias Pedagógicas
 
La competència digital del professorat (model TPACK)
La competència digital del professorat (model TPACK)La competència digital del professorat (model TPACK)
La competència digital del professorat (model TPACK)
 
NOAC use - brief handout
NOAC use - brief handoutNOAC use - brief handout
NOAC use - brief handout
 
ベトナム人の新聞・雑誌・読書の習慣についての調査
ベトナム人の新聞・雑誌・読書の習慣についての調査ベトナム人の新聞・雑誌・読書の習慣についての調査
ベトナム人の新聞・雑誌・読書の習慣についての調査
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
MAPATO - PASADA Complete Document
MAPATO - PASADA Complete DocumentMAPATO - PASADA Complete Document
MAPATO - PASADA Complete Document
 
Robert mueller pitch
Robert mueller pitchRobert mueller pitch
Robert mueller pitch
 
Review of use of learning and observation in ITE lesson study
Review of use of learning and observation in ITE lesson studyReview of use of learning and observation in ITE lesson study
Review of use of learning and observation in ITE lesson study
 
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
20150816-民撰官酌的台灣開放政府資料授權條款 Revision of the Taiwan Open Government Data Licens...
 
Phun phủ nhiệt
Phun phủ nhiệtPhun phủ nhiệt
Phun phủ nhiệt
 
Historia de la alhòndiga de granaditas 150909
Historia de la alhòndiga de granaditas 150909Historia de la alhòndiga de granaditas 150909
Historia de la alhòndiga de granaditas 150909
 
Internship powerpoint
Internship powerpointInternship powerpoint
Internship powerpoint
 
ベトナムの歯磨き・歯ブラシ調査
ベトナムの歯磨き・歯ブラシ調査ベトナムの歯磨き・歯ブラシ調査
ベトナムの歯磨き・歯ブラシ調査
 
Vietnamese oral research
Vietnamese oral researchVietnamese oral research
Vietnamese oral research
 
Germany and German literature
Germany and German literatureGermany and German literature
Germany and German literature
 
Backpacking is the latest modern travel trend
Backpacking is the latest modern travel trendBackpacking is the latest modern travel trend
Backpacking is the latest modern travel trend
 
Los generos en la pintura
Los generos en la pinturaLos generos en la pintura
Los generos en la pintura
 
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...
Maruti suzuki marketing strategies by Aviroop Banik,Rizvi Institute of Manage...
 
Movimientos del cuello
Movimientos del cuelloMovimientos del cuello
Movimientos del cuello
 

Similar to HW2-1_05.doc

# Neural network toolbox
# Neural network toolbox # Neural network toolbox
# Neural network toolbox
VineetKumar508
 
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
cscpconf
 
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
csandit
 
Feed forward neural network for sine
Feed forward neural network for sineFeed forward neural network for sine
Feed forward neural network for sine
ijcsa
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
Rai University
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structure
Rai University
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parameters
University of Huddersfield
 
Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)
Zihui Li
 
A Tale of Data Pattern Discovery in Parallel
A Tale of Data Pattern Discovery in ParallelA Tale of Data Pattern Discovery in Parallel
A Tale of Data Pattern Discovery in Parallel
Jenny Liu
 
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
ijcsit
 
Clustering
ClusteringClustering
Clustering
Meme Hei
 
VCE Unit 01 (2).pptx
VCE Unit 01 (2).pptxVCE Unit 01 (2).pptx
VCE Unit 01 (2).pptx
skilljiolms
 
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
A TALE of DATA PATTERN DISCOVERY IN PARALLELA TALE of DATA PATTERN DISCOVERY IN PARALLEL
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
Jenny Liu
 
Machine Learning Guide maXbox Starter62
Machine Learning Guide maXbox Starter62Machine Learning Guide maXbox Starter62
Machine Learning Guide maXbox Starter62
Max Kleiner
 
Safety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdfSafety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdf
Polytechnique Montréal
 
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...Derryck Lamptey, MPhil, CISSP
 
F017533540
F017533540F017533540
F017533540
IOSR Journals
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyay
abhishek upadhyay
 

Similar to HW2-1_05.doc (20)

# Neural network toolbox
# Neural network toolbox # Neural network toolbox
# Neural network toolbox
 
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
 
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
 
Feed forward neural network for sine
Feed forward neural network for sineFeed forward neural network for sine
Feed forward neural network for sine
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structure
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parameters
 
N ns 1
N ns 1N ns 1
N ns 1
 
Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)Machine Learning Algorithms (Part 1)
Machine Learning Algorithms (Part 1)
 
A Tale of Data Pattern Discovery in Parallel
A Tale of Data Pattern Discovery in ParallelA Tale of Data Pattern Discovery in Parallel
A Tale of Data Pattern Discovery in Parallel
 
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
 
Clustering
ClusteringClustering
Clustering
 
VCE Unit 01 (2).pptx
VCE Unit 01 (2).pptxVCE Unit 01 (2).pptx
VCE Unit 01 (2).pptx
 
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
A TALE of DATA PATTERN DISCOVERY IN PARALLELA TALE of DATA PATTERN DISCOVERY IN PARALLEL
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
 
Machine Learning Guide maXbox Starter62
Machine Learning Guide maXbox Starter62Machine Learning Guide maXbox Starter62
Machine Learning Guide maXbox Starter62
 
Safety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdfSafety Verification of Deep Neural Networks_.pdf
Safety Verification of Deep Neural Networks_.pdf
 
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...
Achieving Portability and Efficiency in a HPC Code Using Standard Message-pas...
 
F017533540
F017533540F017533540
F017533540
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyay
 

More from butest

EL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEEL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEbutest
 
1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同butest
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALbutest
 
Timeline: The Life of Michael Jackson
Timeline: The Life of Michael JacksonTimeline: The Life of Michael Jackson
Timeline: The Life of Michael Jacksonbutest
 
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...butest
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALbutest
 
Com 380, Summer II
Com 380, Summer IICom 380, Summer II
Com 380, Summer IIbutest
 
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet JazzThe MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazzbutest
 
MICHAEL JACKSON.doc
MICHAEL JACKSON.docMICHAEL JACKSON.doc
MICHAEL JACKSON.docbutest
 
Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1butest
 
Facebook
Facebook Facebook
Facebook butest
 
Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...butest
 
Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...butest
 
NEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTNEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTbutest
 
C-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docC-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docbutest
 
MAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docMAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docbutest
 
Mac OS X Guide.doc
Mac OS X Guide.docMac OS X Guide.doc
Mac OS X Guide.docbutest
 
WEB DESIGN!
WEB DESIGN!WEB DESIGN!
WEB DESIGN!butest
 

More from butest (20)

EL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEEL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBE
 
1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIAL
 
Timeline: The Life of Michael Jackson
Timeline: The Life of Michael JacksonTimeline: The Life of Michael Jackson
Timeline: The Life of Michael Jackson
 
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIAL
 
Com 380, Summer II
Com 380, Summer IICom 380, Summer II
Com 380, Summer II
 
PPT
PPTPPT
PPT
 
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet JazzThe MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
 
MICHAEL JACKSON.doc
MICHAEL JACKSON.docMICHAEL JACKSON.doc
MICHAEL JACKSON.doc
 
Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1
 
Facebook
Facebook Facebook
Facebook
 
Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...
 
Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...
 
NEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTNEWS ANNOUNCEMENT
NEWS ANNOUNCEMENT
 
C-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docC-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.doc
 
MAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docMAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.doc
 
Mac OS X Guide.doc
Mac OS X Guide.docMac OS X Guide.doc
Mac OS X Guide.doc
 
hier
hierhier
hier
 
WEB DESIGN!
WEB DESIGN!WEB DESIGN!
WEB DESIGN!
 

HW2-1_05.doc

  • 1. Machine Learning Homework 2-1 Due Tuesday, May 3, 2005 1. Non-linear auto-regression – the Mackey-Glass equation. In this exercise you will use a neural net to predict the dynamics of a chaotic time series generated by the Mackey-Glass delay differential equation. The data are in the files mack2_tr.dat , mack2_val.dat, and mack2_tst.dat on the class web page. There is a description of the data in the file mack2.txt. To get a look at the behavior of this time series, plot the first column of data. For your experiments, use the Netlab toolbox for Matlab. Both Matlab and the Netlab package are on the OGI-CSEE and PSU-CS education compute servers. The idea behind prediction of univariate time series is that their past behavior provides the information needed to predict future behavior. For linear systems and models, this is the basis for autoregressive (AR) time series models. For nonlinear systems, the notion of predictability from the past is formally captured by Taken’s theorem. Taken’s theorem tells us that we can represent the dynamical state of the system that generated the observed time series x(t) by embedding the time series in a vector v(t ) = [ x(t ), x(t − ∆), x(t − 2 ∆), x(t − 3 ∆), ...x(t − (m − 1)∆ ) ] where ∆ is the embedding lag, and m is the embedding dimension. The data in the files is embedded for you, using a lag and dimension known to provide decent results for this data set. The data consists of five columns. The first four are the lagged values used as inputs, the x(t ) x(t − 6) x(t − 12) x(t − 18) x(t + 85) last column is the value to be predicted: Thus we use the current value x(t), and three previous values to predict the value in the future x(t+85).
  • 2. Your assignment is to apply several neural nets to this prediction problem and obtain the best results you can. You are to use mack2_tr.dat to actually optimize the network weights. When you have arrived at what you think is your best network architecture (size, optimization …), then run the test data mack2_tst.dat through your models. (This is noise-free data, so you will not see overfitting.) First fit a single linear node (linear AR model) to the problem. You can prepare, train, and evaluate the one-node linear model using the NetLab functions glm, glmtrain, and glmfwd. Plot the prediction results (on mack2_test.dat) and also the data on the same plot so you can compare the shapes visually. Measure and report the mean square error on the test data also. Then move on to a network with a single layer of sigmoidal hidden nodes and a linear output. Experiment with the number of hidden nodes, and with different optimizers. Try the scaled conjugate gradient (scg)and the quasi-Newton (quasinew) optimizers. You can try quite large networks – up to 50 hidden units -- although they will take a bit longer to train them. As for the linear node, plot network predictions along with the results. Does the non- linear neural net do significantly better than the linear model? Report the best result you’ve achieved on the test data. Plot the prediction along with the data and compare visually with the linear node prediction. 1. Classification – Iris Data For this exercise, you will train a neural network to classify the three different iris species in the famous Fisher iris data. The data are in the files IrisDev.dat (the development data) and IrisTest.dat (the test data). The files contain the input features in columns one through four, and in the last three columns, the class of each example encoded in a one-of-three representation T = (0 0 1) for class 1 T = (0 1 0) for class 2 T = (1 0 0) for class 3 You will need to construct a network with four inputs and three outputs. Use a logistic unit in the output layer. You can compute the classification accuracy with the Netlab function confmat, which computes both the overall classification accuracy (expressed as percent), and writes out a confusion matrix. The rows of a confusion matrix contain the true class labels, while the columns are the network assignments. For example, suppose we have a three-class problem and a classifier that generates the following confusion matrix:
  • 3. C1 C2 C3 C1 44 5 1 C2 1 39 10 C3 0 9 41 For this example, 44 of 50 C1 example were correctly classified, 5 were mislabeled C2, and 1 was mislabeled C3. The total number of misclassified examples is the sum of the off-diagonal elements, i.e. 26. The error rate is 0.173. Segment the development data set into five segments of 15 examples, and use a 5- fold cross-validation to pick the network size. Do you see any overfitting? When you have what you believe is the best network, run the test data through the network and report the classification accuracy, and include the confusion matrix.