Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Questions ( 1 0 0 points ) : In this assignment, you will train feedforward neural networks with three layers to classify motion data. You

Questions (100 points): In this assignment, you will train feedforward neural networks with three
layers to classify motion data.
You can download "Human Activity Recognition Using Smartphones" data set from
https://archive.ics.uci.edu/dataset/240/human+activity+recognition+using+smartphones link.
Then, unzip UCI HAR Dataset.zip in human+activity+recognition+using+smartphones/ directory
into the same folder.
In total, there are 10299 movement patterns with 561 features belonging to 6 classes in the data
set. These features are explained in detail at human+activity+recognition+using+smartphones/
UCI HAR Dataset/features.txt file. This data set is divided into two as training and test subsets.
Training and test sets include 7352 and 2947 patterns, respectively.
You can benefit from "Human activity recognition with different artificial neural network based
classifiers" named conference paper in the
"
https://iecexplore.ieee.org/abstract/document/7960559" link to understand data set and
assignment better.
As a first step, load training and test data sets with similar codes to the following.
x_train = load ("human+activity+recognition+using+smartphones/UCI HAR
Dataset/train/X_train.txt");
Y_train = load ("human+activity+recognition+using+smartphones/UCI HAR
Dataset/train/Y_train.txt");
X_test = load("human+activity+recognition+using+smartphones/UCI HAR Dataset/test/X_test.txt");
Y_test = load ("human+activity+recognition+using+smartphones/UCI HAR Dataset/test/Y_test.txt");
Here, Y train and Y test variables include class labels from 1 to 6. You must transform
them into the one hot encoding scheme.
After that, you must generate a three-layer neural network, which takes 561 features to the
first hidden layer consisting of 200 neurons with hyperbolic tangent activation functions.
The second hidden layer of the neural network consists of 100 neurons with rectified linear
unit activation functions. The output layer consists of 6 neurons with either sigmoid or
softmax activation functions. Finally, cost function will be chosen either MSE or Cross
Entropy. To do these, you benefit from following codes.
h1_size -260;
h2_size =160; epochlimit =80;
input_size train, 2
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago