diff_months: 10

Supervised Learning Assignment

Download Solution Now
Added on: 2023-07-29 07:15:22
Order Code: clt317503
Question Task Id: 0
  • Country :

    Australia

Part A- 30 marks

DOMAIN:

Medical

CONTEXT:

Medical research university X is undergoing a deep research on patients with certain conditions. University has an internal AI team.

Due to confidentiality the patient’s details and the conditions are masked by the client by providing different datasets to the AI team for developing a AIML model which can predict the condition of the patient depending on the received test results.

DATA DESCRIPTION:

The data consists of biomechanics features of the patients according to their current conditions. Each patient is represented in the data set by six biomechanics attributes derived from the shape and orientation of the condition to their body part.

PROJECT OBJECTIVE:

To Demonstrate the ability to fetch, process and leverage data to generate useful predictions by training Supervised Learning algorithms.

STEPS AND TASK [30 Marks]:

  1. Data Understanding: [5 Marks]
    1. Read all the 3 CSV files as DataFrame and store them into 3 separate variables. [1 Mark]
    2. Print Shape and columns of all the 3 DataFrames. [1 Mark]
    3. Compare Column names of all the 3 DataFrames and clearly write observations. [1 Mark]
    4. Print DataTypes of all the 3 DataFrames. [1 Mark]
    5. Observe and share variation in ‘Class’ feature of all the 3 DaraFrames. [1 Mark]
  2. Data Preparation and Exploration: [5 Marks]
    1. Unify all the variations in ‘Class’ feature for all the 3 DataFrames. [1 Marks]
      For Example: ‘tp_s’, ‘Type_S’, ‘type_s’ should be converted to ‘type_s’
    2. Combine all the 3 DataFrames to form a single DataFrame [1 Marks]
      Checkpoint: Expected Output shape = (310,7)
    3. Print 5 random samples of this DataFrame [1 Marks]
    4. Print Feature-wise percentage of Null values. [1 Mark]
    5. Check 5-point summary of the new DataFrame. [1 Mark]
  3. Data Analysis: [10 Marks]
    1. Visualize a heatmap to understand correlation between all features [2 Marks]
    2. Share insights on correlation. [2 Marks]
    3. Features having stronger correlation with correlation value.
    4. Features having weaker correlation with correlation value.
    5. Visualize a pairplot with 3 classes distinguished by colors and share insights. [2 Marks]
    6. Visualize a jointplot for ‘P_incidence’ and ‘S_slope’ and share insights. [2 Marks]
    7. Visualize a boxplot to check distribution of the features and share insights. [2 Marks]
  4. Model Building: [6 Marks]
    1. Split data into X and Y. [1 Marks]
    2. Split data into train and test with 80:20 proportion. [1 Marks]
    3. Train a Supervised Learning Classification base model using KNN classifier. [2 Marks]
    4. Print all the possible performance metrics for both train and test data. [2 Marks]
  5. Performance Improvement: [4 Marks]
    1. Experiment with various parameters to improve performance of the base model. [2 Marks]
      (Optional: Experiment with various Hyperparameters - Research required)
    2. Clearly showcase improvement in performance achieved. [1 Marks]
      For Example:
      • Accuracy: +15% improvement
      • Precision: +10% improvement.
      • Clearly state which parameters contributed most to improve model performance. [1 Marks]

    Part B- 30 marks

    DOMAIN:

    Banking, Marketing

    CONTEXT:

    A bank X is on a massive digital transformation for all its departments. Bank has a growing customer base whee majority of them are liability customers (depositors) vs borrowers (asset customers). The bank is interested in expanding the borrowers base rapidly to bring in more business via loan interests. A campaign that the bank ran in last quarter showed an average single digit conversion rate. Digital transformation being the core strength of the business strategy, marketing department wants to devise effective campaigns with better target marketing to increase the conversion ratio to double digit with same budget as per last campaign.

    DATA DICTIONARY:

    1. ID: Customer ID
    2. Age: Customer’s approximate age.
    3. CustomerSince: Customer of the bank since. [unit is masked]
    4. HighestSpend: Customer’s highest spend so far in one transaction. [unit is masked]
    5. ZipCode: Customer’s zip code.
    6. HiddenScore: A score associated to the customer which is masked by the bank as an IP.
    7. MonthlyAverageSpend: Customer’s monthly average spend so far. [unit is masked]
    8. Level: A level associated to the customer which is masked by the bank as an IP.
    9. Mortgage: Customer’s mortgage. [unit is masked]
    10. Security: Customer’s security asset with the bank. [unit is masked]
    11. FixedDepositAccount: Customer’s fixed deposit account with the bank. [unit is masked]
    12. InternetBanking: if the customer uses internet banking.
    13. CreditCard: if the customer uses bank’s credit card.
    14. LoanOnCard: if the customer has a loan on credit card.

    PROJECT OBJECTIVE:

    Build a Machine Learning model to perform focused marketing by predicting the potential customers who will convert using the historical dataset.

    STEPS AND TASK [30 Marks]:

    1. Data Understanding and Preparation: [5 Marks]
      1. Read both the Datasets ‘Data1’ and ‘Data 2’ as DataFrame and store them into two separate variables. [1 Marks]
      2. Print shape and Column Names and DataTypes of both the Dataframes. [1 Marks]
      3. Merge both the Dataframes on ‘ID’ feature to form a single DataFrame [2 Marks]
      4. Change Datatype of below features to ‘Object’ [1 Marks] ‘CreditCard’, ‘InternetBanking’, ‘FixedDepositAccount’, ‘Security’, ‘Level’, ‘HiddenScore’. [Reason behind performing this operation:- Values in these features are binary i.e. 1/0. But DataType is ‘int’/’float’ which is not expected.]
    2. Data Exploration and Analysis: [5 Marks]
    3. Visualize distribution of Target variable ‘LoanOnCard’ and clearly share insights. [2 Marks]
    4. Check the percentage of missing values and impute if required. [1 Marks]
    5. Check for unexpected values in each categorical variable and impute with best suitable value. [2 Marks]
      [Unexpected values means if all values in a feature are 0/1 then ‘?’, ‘a’, 1.5 are unexpected values which needs treatment ]
  6. Data Preparation and model building: [10 Marks]
    1. Split data into X and Y. [1 Marks] [Recommended to drop ID & ZipCode. LoanOnCard is target Variable]
    2. Split data into train and test. Keep 25?ta reserved for testing. [1 Marks]
    3. Train a Supervised Learning Classification base model - Logistic Regression. [2 Marks]
    4. Print evaluation metrics for the model and clearly share insights. [1 Marks]
    5. Balance the data using the right balancing technique. [2 Marks]
      • Check distribution of the target variable
      • Say output is class A : 20% and class B : 80%
      • Here you need to balance the target variable as 50:50.
      • Try appropriate method to achieve the same.
    6. Again train the same previous model on balanced data. [1 Marks]
    7. Print evaluation metrics and clearly share differences observed. [2 Marks]
  7. Performance Improvement: [10 Marks]
    1. Train a base model each for SVM, KNN. [4 Marks]
    2. Tune parameters for each of the models wherever required and finalize a model. [3 Marks] (Optional: Experiment with various Hyperparameters - Research required)
    3. Print evaluation metrics for final model. [1 Marks]
    4. Share improvement achieved from base model to final model. [2 Marks]

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects.

Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Katthy Wills
  • Posted on : July 29th, 2023
  • Downloads : 0
  • Views : 85

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more