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

  Find the sample program illustrating the split method

Plan program carefully on paper before beginning code. You may find the sample program illustrating the 'split' method to be a useful reference.

  Develop a python program to solve a problem

Develop a Python program to solve a problem and Write a Python program to solve the following problem. Your solution should include a readme.md file

  Write an automatic grading program

B657 Assignment - Image Processing and Recognition Basics. Write an automatic grading program that will work as well as possible

  Find the connection weight and thresholds for RNN

Find the connection weight and thresholds for RNN to solve it. Update neurons one by one, check the decrease of energy and if there are local minima

  Write a function the amount of loan at the start

Assignment Question - Task: Loan. Write a function loan_amount_left that takes in four inputs. The function returns the amount of loan left at the end of year

  Write a python function which takes the name of a file

Extend your program to print the board on the screen using printBoard(board) function. This function prints the contents of the board to the screen.

  COMP3220 Document Processing and the Semantic Web Assignment

COMP3220 Document Processing and the Semantic Web Assignment Help and Solution, Macquarie University - Assessment Writing Service

  Implement the triangle classification algorithm

Create a function that implements the Triangle Classification Algorithm. The algorithm has a lot of steps in it, but each step is simple.

  Building a class for morse code decoder

Building a class for Morse Code decoder. In the first task, you are required to define a class that serves as the Morse Code decoder.

  Write a function that generates a list of all prime numbers

Write a Python function that, given the path to a directory, lists the files in the directory (Hint: The function is actually quite simple, but it will require

  Why members discontinue and thereby reduce attrition

Write an algorithm in structured English pseudocode that describes the steps required to perform the task specified. Run your program using the test data.

  Write a program that prompts the user to enter a distance

Write a program that Prompts the user to enter a distance in kilometers. And uses an internal function that you create to convert kilometers to miles.

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