SRT521 Advanced Data Analysis Assignment

Assignment Help Python Programming
Reference no: EM133013034

SRT521 Advanced Data Analysis - Seneca College

Objective
In this lab we will explore several ways to handle imbalanced datasets, feature selection methods and classifier implementation.

Tasks

Task 0: Create a report
1. Create a word document, and write the details of your lab completion in it. This will serve as proof that the lab was satisfactorily completed.

2. Each heading should be a task (Task 1, Task 2, etc), with screenshots and descriptions that prove the task was completed satisfactorily. Fill these headings out as you complete the lab.

Task 1: Dealing with imbalanced datasets
1. Install the imbalanced-Learn library on the Ubuntu monitoring server you deployed in lab 1.

2. Create a python script to perform the following:
a) Calculate how many instances of each class are on the dataset created in lab 2? (Take screenshot)
b) Transform the base dataset using random oversampling to increase the number of samples of the minority class (malware).
i. How many instances of each class are present on the transformed set? (Take screenshot)
c) Transform the base dataset using SMOTE to increase the number of samples of the minority class.
i. What is the difference between SMOTE and random oversampling?
ii. How many instances of each class are present on the transformed set? (Take screenshot)
d) Transform the base dataset using random under sampling to reduce the number of samples of the majority class.
i. How many instances of each class are present on the transformed set?

Task 2: Feature Selection
There are several methods to select which features to use for a model.
1. What is a wrapper method? give some examples, what is a filter method? Give some examples.

2. Fill the following table on the following page with an appropriate feature selection method for the type of data of the model.

Type of feature

Type of prediction

/ classification

Feature selection method

Numerical

Numerical

 

Numerical

Categorical

 

Categorical

Numerical

 

Categorical

Categorical

 

3. When applying a feature selection method, should we apply it to the training dataset or the complete dataset? Why?

4. Create 1 or more Python scripts to perform the following:
a) Select 15 features using scikit-learn's SelectKBest function with chi2 and mutual information.
i. Which features were selected?
b) Select features using scikit-learn's SelectPercentile function with chi2 and mutual information.
i. How many features were selected? What are these features?
ii. What is the difference between using SelectKBest and SelectPercentile?
c) Use scikit-learn recursive feature elimination to select 15 features using the SVC classifier1.
i. Which features were selected?
d) Use scikit-learn recursive feature elimination to select 15 features using BernoulliNB model2, then compare the results with the previous method.
i. Which method did you select?
ii. Which features were selected?

Attachment:- Advanced Data Analysis.rar

Reference no: EM133013034

Questions Cloud

Create a differential diagnosis for the patient : Create a differential diagnosis for the patient in your chosen case. Be sure to select one of the cases above that you have not already written
What was the share rate of return : The share paid a dividend of $1.20 during the year. What was the share's rate of return from capital appreciation during the year
Compute the new equipment net present value : BYOM estimates that it will costs $11,190 per year to operate the new equipment. Compute the new equipment net present value
What does the IRR rule say : What does the IRR rule say about whether you should accept this? opportunity? If the cost of capital is 8.2%?, what does the NPV rule? say
SRT521 Advanced Data Analysis Assignment : SRT521 Advanced Data Analysis Assignment Help and Solution, Seneca College - Assessment Writing Service
Determine the expected rate of return : Sintokyo Berhad's seven-year RM1,000 par bonds pay 9 percent interest. Your required rate of return is 7 percent. Determine the expected rate of return
Prepare journal entries to reflect the revaluation of asset : Prepare journal entries to reflect the revaluation of the asset and the subsequent depreciation of the revalued asset
Compute the net present value for investment of health spa : Compute the net present value for the investment of health spa only given that 500 sq feet were purchased and resold after 10 yrs
How much his employer contribute as a matching contribution : How much will his employer contribute as a matching contribution? What amount will Stan have to pay in Social Security taxes? What is the formula

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