MBAN Assignment Haider
.pdf
keyboard_arrow_up
School
York University *
*We aren’t endorsed by this school
Course
MBAN6110
Subject
Computer Science
Date
Apr 3, 2024
Type
Pages
2
Uploaded by ChefAtom13064
MBAN 6500X -- Assignment 2
Task
This is an individual assignment that requires you to participate in a machine learning competition on Kaggle
. Specifically, you
will participate in the competition Titanic: Machine Learning from Disaster
, where the task it to predict survival based on
passenger information.
You have to register a Kaggle account and follow the instructions under Overview
on the competition site. Beyond the Overview
,
I recommend you to closely study a couple of notebooks under the Notebooks
tab. For example, "
Titanic: 81.1% Leader board
Score Guaranteed
" and "
A Data Science Framework: To Achieve 99% Accuracy
" provide good examples of exploratory analysis
and feature engineering and are thus worth your time. Use them as tutorials.
You have to fit and compare three different learning algorithms
, including both a linear and a non-linear learner.
Submission
The assignment is due on February 21 at 7:00 pm. You have to do two things.
1) Select the best among the models and submit the predictions Kaggle's test set to Kaggle.
2) Submit your Kaggle username by putting it in the Canvas comment when you submit the Python file.
3) Submit to Canvas a standard Python file (i.e. PY
) containing the complete code (see Grading
) that trains all three models
and for each model, prints the accuracy, F1-score and AUC.
Grading
The submitted Python file should contain the following standard steps of a data science project:
1. Load data.
2. Exploratory data analysis and pre-processing. Use the insights you gain from the exploratory analysis to guide the pre-
processing.
Data cleaning.
Identification and treatment of missing values and outliers.
Feature engineering.
Make three plots describing different aspects of the data set. The first should be a histogram showing survival as a
function of age (i.e. two histograms, one for survivors and the other for not survivors with age on the x-axis and count on
the y-axis), the second, a bar plot of the number of surviors for each passenger class (
Pclass
), and finally, third thould
be a matrix showing the pairwise correlations between featrures.
Print a basic data description (at a minimum the number of examples, number features, and number of examples in
each class). The data description should be printed under the header Data description
(see example below).
Print (and include in the plots) descriptive statistics (e.g. means, medians, standard deviation). The descriptive statistics
should be printed under the header Descriptive statistics
(see example below). Only print descriptive statistics for four
features.
3. Partition data (not Kaggle's test set) into train, validation and test sets. This test set will be different from Kaggle's test set.
4. Fit models on the training set (this can include a hyper-parameter search) and select the best based on validation set
performance.
5. Print the results of all three models on the test set from (4). This should include accuracy, F1-score and AUC. The results
should be printed under the header Performance
(see example below).
6. Save the predictions of the best model on Kaggle's test set to submission.csv
.
Example printing
The values and feature names, and learner names are examples and should be replaced.
Data description ---------------- number of examples : 123 number of features : 456 number of examples per class : 7 (survived), 8 (didn't survive) Descriptive statistics ---------------------- feature 1 feature 2 feature 3 feature 4 mean 1.1 1.2 1.3 1.4 median 2.1 2.2 2.3 2.4 std 3.1 3.2 3.3 3.4 Performance ----------- accuracy F1-score AUC Linear model x1 y1 z1 Random forest x2 y2 z2 Boosting model x3 y3 z3
While the first part of this submission could be completed by simply copying an existing notebook, the second part cannot. Your
code will be marked based on it's originality and the extent that it reflects an understanding of the task. Extensive copying will be
considered plagiarism and Turnitin will be used for it's detection. For this assignment, learning and understanding are more
important than prediction accuracy.
Good luck!
Hjalmar
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Lab Tasks:
You are going to develop a simple application which has two screens:
• Screen1 contain four controls: TextView show "Enter your email address and
password", Edittext1 to get email address and Edittext2 to get password from
the user and Button to take user to next screen
Screen2 contains only one control – TextView which displays greet message
arrow_forward
LabVIEW Activity: GPA Calculator
Create a VI that allows you to enter Course grade (on the 4 point scale) and the number of credits and calculate your semester GPA. Enter your grade by a drop down letter grade and have the block diagram convert it to a numeric value.
arrow_forward
HCI project :
write at least 2 pages about the aspects related to the social and/or emotional interaction found in the chosen application .
arrow_forward
Instructions
Blood pressure monitor: Over the following three chapters, we will create an app that monitors blood pressure. You can model the app based on the Thyroid app. In this chapter, we will create the skeleton of the app, similar to the Thyroid app. Now, just create the pages and the links to navigate between them; you will implement the functionality of the pages in later chapters. The app will have
A password-based entry page.
A page to get basic information about the person such as name, date of birth, and health insurance card number, along with an ability to change the password.
A menu page with four choices
An option and corresponding page to allow you to change the basic information about the person.
An option and corresponding page to enter data—blood pressure.
An option and corresponding page to graph the data.
An option and corresponding page to make recommendations based on the values of blood pressure.
Note: post solution not steps. I need the code.
arrow_forward
Answer true or false
arrow_forward
That answer is wrong. Can you please read the instructions.
arrow_forward
Besides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…
arrow_forward
Instructions:
Create a new project and name it as yourlastname-firstname-Assignment7. Save this project in VB folder you created earlier.
Change form’s title to: Your full name – Assignment 7 - Multiform.
Main form contains (see main form layout below):
five buttons: Quizzes Total, Projects Total, Grade, Clear and Exit
five labels: display Quizzes Totals, Project Totals and Grade. Display Final and Grade labels
one textbox to input Final score. Clear button to clear the main form and Exit to close the mail form
Quizzes form contains (see quizzes form layout below):
four labels to display Quiz 1, Quiz 2, Quiz 3, Quiz 4
four textboxes to input score for each quiz
two buttons: OK to add the quizzes scores and return to the main form & Cancel to return to the main form without any calculations
Projects form contains (see projects form layout below):
five labels to display Project 1, Project 2, Project 3, Project 4, Project 5
five textboxes to input score for each project…
arrow_forward
Select the correct answer from each drop- down menu.
Control structures are used while performing everyday tasks.
If you had to make a choice between studies and games during a holiday, you would use the sequence X control structure. If you
had to fill your name and address on ten assignment books, you would use the selection X control structure.
arrow_forward
Project Proposal – : Develop an idea and put it down on paper (typed). Your proposal should include a title, a description of your game: name PING PONG and
a description of your user interface. You can use a drawing if it helps you.
arrow_forward
Computer Science
create a project in .net visual studio. the project is to code a chart in the program but not from using a control.
will upvote!
arrow_forward
VISUAL BASIC
Q1 Design a project to calculate (V) according to the given equations. The
user will first choose one of the three equations using a Drop -Down
Menu. Then the value of V is calculated after the user inputs the required
data and clicks on a command button. The number of the text boxes used
in the project must not be more than 3. The number of the visible text
boxes and labels, and the caption of the labels should change as required.
V = F + G
(Eq. 1)
......
V = (H + J)2
(Eq. 2)
V = 2k
(Eq. 3)
Q2
Design a project to find the biggest number in three numbers by calling the
subroutine Biggest twice. This subroutine determines the bigger number in
two numbers.
arrow_forward
Please see the attach photo for the instructions and the scenario
arrow_forward
The . are Words with special meaning that
make up a high-level programming language,
cannot be used for any other purpose
......
Operators .i
Variables .ii
Syntax .i
Keywords .iv
arrow_forward
paper factory-what 6 commands can you chain together to create the design?
arrow_forward
Android Studio with Java
arrow_forward
Number of ways you can arrange the top 5 items out of 10 items on a menu.
arrow_forward
Tasks:
Design the Pseudo Code.
Draw the Flow Chart.
An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more than $300, the service charge is 4% of the amount over $300. If the customer does not have sufficient money in the account, the ATM informs the customer about the insufficient fund and gives the option to withdraw the money for a service charge of $25.00. If there is no money in the account or if the account balance is negative, the ATM does not allow the customer to withdraw any money. If the amount to be withdrawn is greater than $500, the ATM informs the customer about the maximum amount that can be withdrawn.
Design pseudo code and flowchart that allows the customer to enter the amount to be withdrawn. It then checks the total amount in the account, dispenses the money to the customer, and debits the account by the amount withdrawn and the service charges, if any.
arrow_forward
Not allowed. This test can only be taken once.
Force Completion This test can be saved and resumed at any point until time has expired. The timer will continue to run if you lea
Remaining Time: 26 minutes, 30 seconds.
Question Completion Status:
Moving to another question will save this response.
Question 7
is a document that gives information to recover a company’'s asset in the event of Earthquake.
Disaster
Plan
User Manual
Prototype
Technical Manual
AMoving to another question will save this response.
W
arrow_forward
just do what you can from the project
arrow_forward
Please see the attach photo for the instructions and the scenario for the use case to be made
arrow_forward
aut
cad
To change the length of an object (line or arc only), the command
can be used
length
move
scale
rotate
fence
arrow_forward
Text boxes are a group of circular buttons, used to select one item from a group.
True
False
arrow_forward
As stated in the last module, this week you will exchange your draft with a partner so they can review it with the rubric. The goal of this exchange is to help mold and rework your draft for submission by Saturday. Because this is a quick turnaround, please make sure you complete the review of your peer’s paper by Thursday so that they will have time to make any changes prior to submission. Additionally, posting your draft prior to Tuesday is strongly encouraged as this will allow additional time for your peer to review your draft.
Remember, in total, your research paper needs to be written and formatted using the APA style guide and should include 5-6 pages of text. Your page requirement does not include the cover page, abstract, or reference page. Your research paper should also include a minimum of 3-4 reputable sources.
Apa research paper on prymids
arrow_forward
The two pictures uploaded are explaining the task
arrow_forward
Assignment on GUI
Create a Java Swing Application named CarShowRoom. You have to first design the UI using swing package and then write event handling code as per the following specifications.
Tasks:
Use Flow Layout
Create a combobox containing the brands of different cars such as Audi, BMW etc. Use 5 brands as per your choice in the combobox.
Create a button “show”
Create a TextArea which will initially be empty. When an item is selected from the combobox and the button “show” is pressed, that TextArea will show the number of cars of that model available, price of each car, colors available and some unique features of that car.
Every time an item is selected from the combobox, the details of this item will be appended to the previous information already showed in the textarea. The TextArea will not be refreshed.
Create another TextField which will be invisible till a car is booked (after clicking the button “book”).
Create another button “book”. When this button is clicked, the…
arrow_forward
https://cleveronly.com/brainbucket/index.php?route=common/home
Navigation bar Desktops
Create scripts for test cases:
Opening PC will show all PCs. If there are no PCs available, then the message "There are no products to list in this category." is displayed
Opening Mac will show all Macs. The number of items should match the number in the dropdown option:
Clicking on all desktops will show available desktops.
arrow_forward
Home
Take Test: Midterm-2
Warnings appear when half the time, 5 minutes, 1 minute, and 30 seconds remain.
Multiple Attempts
Not allowed. This test can only be taken once.
Force Completion
This test can be saved and resumed at any point until time has expired. The timer will continue to run if you
leave the test.
Remaining Time: 55 minutes, 21 seconds.
Question Completion Status:
AMoving to another question will save this response.
«< Question 2 of 13
Question 2
8 points
Save Answer
What is the result of (1- 2) in 3-bits twos complement. Type the
answer in binary.
A Moving to another questlon will save this response.
« Questlon 2 of 13 »
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:9780357392607
Author:FREUND
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Related Questions
- Lab Tasks: You are going to develop a simple application which has two screens: • Screen1 contain four controls: TextView show "Enter your email address and password", Edittext1 to get email address and Edittext2 to get password from the user and Button to take user to next screen Screen2 contains only one control – TextView which displays greet messagearrow_forwardLabVIEW Activity: GPA Calculator Create a VI that allows you to enter Course grade (on the 4 point scale) and the number of credits and calculate your semester GPA. Enter your grade by a drop down letter grade and have the block diagram convert it to a numeric value.arrow_forwardHCI project : write at least 2 pages about the aspects related to the social and/or emotional interaction found in the chosen application .arrow_forward
- Instructions Blood pressure monitor: Over the following three chapters, we will create an app that monitors blood pressure. You can model the app based on the Thyroid app. In this chapter, we will create the skeleton of the app, similar to the Thyroid app. Now, just create the pages and the links to navigate between them; you will implement the functionality of the pages in later chapters. The app will have A password-based entry page. A page to get basic information about the person such as name, date of birth, and health insurance card number, along with an ability to change the password. A menu page with four choices An option and corresponding page to allow you to change the basic information about the person. An option and corresponding page to enter data—blood pressure. An option and corresponding page to graph the data. An option and corresponding page to make recommendations based on the values of blood pressure. Note: post solution not steps. I need the code.arrow_forwardAnswer true or falsearrow_forwardThat answer is wrong. Can you please read the instructions.arrow_forward
- Besides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…arrow_forwardInstructions: Create a new project and name it as yourlastname-firstname-Assignment7. Save this project in VB folder you created earlier. Change form’s title to: Your full name – Assignment 7 - Multiform. Main form contains (see main form layout below): five buttons: Quizzes Total, Projects Total, Grade, Clear and Exit five labels: display Quizzes Totals, Project Totals and Grade. Display Final and Grade labels one textbox to input Final score. Clear button to clear the main form and Exit to close the mail form Quizzes form contains (see quizzes form layout below): four labels to display Quiz 1, Quiz 2, Quiz 3, Quiz 4 four textboxes to input score for each quiz two buttons: OK to add the quizzes scores and return to the main form & Cancel to return to the main form without any calculations Projects form contains (see projects form layout below): five labels to display Project 1, Project 2, Project 3, Project 4, Project 5 five textboxes to input score for each project…arrow_forwardSelect the correct answer from each drop- down menu. Control structures are used while performing everyday tasks. If you had to make a choice between studies and games during a holiday, you would use the sequence X control structure. If you had to fill your name and address on ten assignment books, you would use the selection X control structure.arrow_forward
- Project Proposal – : Develop an idea and put it down on paper (typed). Your proposal should include a title, a description of your game: name PING PONG and a description of your user interface. You can use a drawing if it helps you.arrow_forwardComputer Science create a project in .net visual studio. the project is to code a chart in the program but not from using a control. will upvote!arrow_forwardVISUAL BASIC Q1 Design a project to calculate (V) according to the given equations. The user will first choose one of the three equations using a Drop -Down Menu. Then the value of V is calculated after the user inputs the required data and clicks on a command button. The number of the text boxes used in the project must not be more than 3. The number of the visible text boxes and labels, and the caption of the labels should change as required. V = F + G (Eq. 1) ...... V = (H + J)2 (Eq. 2) V = 2k (Eq. 3) Q2 Design a project to find the biggest number in three numbers by calling the subroutine Biggest twice. This subroutine determines the bigger number in two numbers.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Windows 10 Comprehensive 2019Computer ScienceISBN:9780357392607Author:FREUNDPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:9780357392607
Author:FREUND
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning