Machine Learning with Python

Perform the below Tasks
1.Download the titanic data set given below in the link, passenger survival data for the Titanic

  1. Perform Random forest, Decision trees and Gradient boost classification on the above dataset
  2. To calculate this, generate a random 80/20 split (using dataset. Split (0.8)) train the model
    on the 80% fraction and then evaluate the accuracy on the 20% fraction.
  3. What is the accuracy of your decision tree classifier on the Titanic data set with unlimited
    depth. (Repeat this 100 times and average the result (hint: do the repetition in code :).
  4. What is the best depth limit to use for this data? To answer this, do the same calculations
    as above (average 100 experiments), but do it for increasing depth limits, specifically 0, 1, 2,
    …, 10. Show all of your results.
  5. Do we see overfitting with this data set? Repeat the experiment from question 3 within-
    creasing depth (0, 1, …, 10) and calculate the accuracy this time on both the testing data
    (like before) and training data.
  6. What is the accuracy of the random forest and gradient boost classifier on the Titanic data set.
  7. Create a graph with matplotlib library with these results and then provide a 1-2 sentence answer describing the graph.
  8. preprocess the data using Standard Scalar or MinMax Scalar for Random Forest and Gradient Boost.
  9. Evaluate the model and plot the confusion matrices. Compare the Performance without preprocessing and with preprocessing and Tabulate your results and provide a justification which approach is better.
  10. Prepare a neat report discussing all the above tasks

Sample Solution

The post Machine Learning with Python appeared first on nursing writers.


<h2 style="

Order a similar paper and get 15% discount on your first order with us

Dr. Padma Myers
Dr. Padma Myers
98% Success Rate
Read More
“Hello, I deliver nursing papers on time following instructions from the client. My primary goal is customer satisfaction. Welcome for plagiarism free papers”
Stern Frea
Stern Frea
98% Success Rate
Read More
Hi! I am an English Language and Literature graduate; I have written many academic essays, including argumentative essays, research papers, and literary analysis.
Dr. Ishid Elsa
Dr. Ishid Elsa
98% Success Rate
Read More
"Hi, count on me to deliver quality papers that meet your expectations. I write well researched papers in the fields of nursing and medicine".
Dr. Paul P. Klug
Dr. Paul P. Klug
99% Success Rate
Read More
"A top writer with proven reliability and experience. I have a 99% success rate, overall rating of 10. Hire me for quality custom written nursing papers. Thank you"

How Our Essay Writing Service Works

Tell Us Your Requirements

Fill out order details and instructions, then upload any files or additional materials if needed. Then, confirm your order by clicking “Place an Order.”

Make your payment

Your payment is processed by a secure system. We accept Mastercard, Visa, Amex, and Discover. We don’t share any informati.on with third parties

The Writing Process

You can communicate with your writer. Clarify or track order with our customer support team. Upload all the necessary files for the writer to use.

Download your paper

Check your paper on your client profile. If it meets your requirements, approve and download. If any changes are needed, request a revision to be done.

Recent Questions

Stay In Touch!

Leave your email and get discount promo codes and the best essay samples from our writers!