Skip to content

sushovanjena/Deep-Learning-IIT-Mandi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Deep-Learning-IIT-Mandi

Deep Learning Assignments

Assignment 1

Classification tasks

Datasets:

Dataset 1: 2-dimensional input data:

(a) Linearly separable classes: 2-dimensional artificial data of 3 classes that is linearly separable. Each class has 500 data points.

(b) Nonlinearly separable classes: 2-dimensional artificial data of 2 or 3 classes that is nonlinearly separable. The number of examples in each class and their order is given at the beginning of each file.

Divide the data into training, validation and test data. Consider 60% of the data from each class as training data, 20% of the data from each class as validation data and remaining 20% of data from each class as test data.

Dataset 2: Image data: Scene image data corresponding to 3 different classes Consider 40 images from each class in training folder as training data, remaining 10 images from each class in training folder as validation data.

Models:

  1. Perceptron with sigmoidal activation function for Dataset 1(a) and 1(b)
  2. MLFFNN for Datasets 1(a), 1(b) and 2

Presentation of Results:

  1. Plot of epochs (x-axis) vs average error (y-axis).
  2. Decision region plot for Datasets 1(a) and 1(b)
  3. Confusion matrix and average classification accuracy
  4. Comparison of performance of different models for each dataset
  5. Plots of outputs for each of the hidden nodes and output nodes in MLFFNN for Dataset 1(a) and 1(b) after the model is trained. Here, x and y axis are input variables of each example, z axis is output of hidden node/output node.

Assignment 2

Regression tasks

Datasets

Dataset 1: 1-dimensional (Univariate) input data

Dataset 2: 2-dimensional (Bivariate) input data

Divide the data into training, validation and test data. Consider 60% of the data from each class as training data, 20% of the data from each class as validation data and remaining 20% of data from each class as test data.

Models:

  1. Perceptron with linear activation function for Datasets 1 and 2.
  2. MLFFNN model for Datasets 1 and 2.

Presentation of Results:

  1. Plot of epochs (x-axis) vs average error (y-axis).
  2. Plots of the values of mean squared error (MSE) on training data, validation data and test data, for different model complexities.
  3. Plots of model output and target output for training data, validation data and test data.
  4. Scatter plot with target output on x-axis and model output on y-axis, for training data, validation data and test data.5. Plots of outputs for each of the hidden nodes and output

Assignment 3

Extract Bag-of-visual-words (BoVW) feature for each of the images.

The description and steps of extracting BoVW feature is as follows:

  1. Consider 32 x 32 nonoverlapping patches on every image (from training and test sets). For example, if image size is 256 x 256, there will be 32 numbers of 32 x 32 nonoverlapping patches. If the image size is not the divisible of 32, then you can copy the pixels to make those patches of size 32.
  2. Extract 8-bin colour histogram from every colour channel (R, G and B) from a patch. It results in 3, 8-dimentional feature vectors. Concatenate them to form 24-dimentional feature vector.
  3. Similarly extract 24-dimentional feature vector from every patch.
  4. Repeat the above steps to all the images in training and test set of all the classes.
  5. Take the 24-dimentional colour histogram feature vectors of all the training examples of all the classes.
  6. Group them into 32 clusters using K-means clustering algorithms.
  7. Now take an image, assign each 24-dimentional colour histogram feature vector to a cluster.
  8. Count the number of feature vectors assigned to each of the 32 clusters.
  9. This results in a 32-dimentional vector representation for that image.
  10. Divide elements of 32-dimensional vector by the number of patches considered for that image.
  11. This results in a 32-dimentional BoVW representation for that image.
  12. Repeat this (Step 7 to 11) for every image in training and test set.

About

Deep Learning Assignments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published