ECE 228 Machine Learning for Physical Applications

Assignment Help Python Programming
Reference no: EM132501133

ECE 228 Machine Learning for Physical Applications - University of California

Classifiers and Autoencoding

In this Python programming homework we hope to provide you with an opportunity to become comfortable with linear, convolutional, dropout layers and general construction of a model in a deep learning framework. We make use of the Keras Tensorflow2 framework for its ease of use to those new to deep learning frameworks. This homework allows use of PyTorch with the requirement that the coder adheres to the layout of the notebook.

Meaning, substituting the PyTorch class defining a network is placed where the corresponding Tensorflow2 code is located. Please print the network after initialization.

For ease we would like that you answer the questions in markdown cells directly in the notebook. The questions are located at the top of the notebook so you do not have to search. Answers should be a short paragraph (except for 2.3) with any requested plots generated from the code below.

Overfitting

In this section you will construct a classifier for the Fashion MNIST dataset and see an example of model overfitting.

Deliverables: A working model according to the design specified, Answers to questions.

Dropout
The goal here is to provide one of a few possible improvements to deal with overfitting issues. Dropout is also useful as a "stress test" of your model. During training it randomly disconnects a percentage of connections between layers. This forces a network not to rely too heavily on any one connection, but to distribute information properly throughout the network.
Deliverables: A working model according to the design specified, Answers to questions.

Vanilla Autoencoder
Autoencoders are a simple but useful model. Similar to how a one-hot encoding transforms data into a useful form for a particular network. Autoencoders provide powerful nonlinear encoding of data by squeezing the data through a "bottleneck" called the latent space. Which in a sense filters the data down to a sparse basis or representation of the data. The goal is to find a smallest latent space which gives a highly accurate reconstruction of the data.

Deliverables: A working model according to the design specified and latent space representation.

Convolutional Autoencoder
A more powerful and complex form of autoencoder which can combine local information to create complex abstract features across 2D image patches. Using max pooling provides invariant features while only using convolution layers to reduce feature map size yields equivariant features. Deliverables: A working model according to the design specified and latent space representation.

Anomaly Detection
In this section you are given a dataset of vibration data coming from a machine pump. The data has 8 channels, one for each acoustic sensor location. There is background noise. Your goal is to construct an autoencoder that can detect the anomaly data. You are free to approach this as you see fit with the only stipulation being that you can outperform a baseline model by finding more than 75 of the 143 anomalies. The data was created using the torchaudio MelSpectrogram function and is a subset of a newer dataset developed for machine condition detection. This data can be used for class projects and the melspectrogram starter code can be used for anyone working with acoustic data.

Deliverables: A working model, histogram plot, mean and std. dev. of normal data, and confusion matrix for a 2 standard deviation threshold as results. Match your test/validation/training names to final given code to calculate true positives.

Describe your design decisions regarding your model. Choice of layers, layer sizing, choice of loss function, choice of nonlinearity, shape of data input and why, batch sizing, hyper parameters, etc.

Attachment:- Classifiers and Autoencoding.rar

Reference no: EM132501133

Questions Cloud

What is the value of the firm assets prior : The firm has 100,000 shares outstanding. The cost of capital is 20% and the firm faces a 40% tax on all corporate earnings.
Find the full product cost per unit including upstream : Find the full product cost per unit, including upstream, manufacturing, and downstream activities. Also compute the relative proportion of each main cost.
STA101 - Statistics for Business Assignment : STA101 - Statistics for Business Assignment Help and Solution - Elite Education Institute, Australia. Determine the mean, median and mode
Which investment type should the investor choose : He can also make invest the $10,000 in a bank account earning 6% per month compounded weekly over the same 40-week period.
ECE 228 Machine Learning for Physical Applications : ECE 228 Machine Learning for Physical Applications Assignment help and Solution, University of California - Assessment Writing Service
What is the optimal order quantity for market 1 : a) What is the optimal order quantity for market 1? What is the optimal safety stock for market 1?
Cindy pre-tax earning : Cindy's marginal tax rate is 20%. This $1600 medical expense is equivalent to how much of Cindy's pre-tax earning? (to the nearest dollar)
Calculate the cost of common stock for the firm : Jaffe Co. just paid dividend of $1.65 per share. Dividends are expected to grow at 2 % forever. The stock is currently. $70 per share.
What is the variance of the stock returns : There is 25 percent probability of a bad economy, 28 percent probability of a normal economy, and 47 percent probability of a hot economy.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd