The dataset data2.csv provides information on predicting whe…
The dataset data2.csv provides information on predicting whether a patient is likely to get a stroke based on parameters such as gender, age, various diseases, and smoking status. Each row in the data provides relevant information about each patient. Here is the description of the columns: id: unique identifier gender: Male (0), Female (1) or Other (2) age: age of the patient hypertension: 0 if the patient doesn’t have hypertension, 1 if the patient has hypertension heart_disease: 0 if the patient doesn’t have any heart diseases, 1 if the patient has a heart disease ever_married: No (0), Yes (1) work_type: Private (0), Self-employed (1), children (2), Govt_job (3), Never_worked (4) Residence_type: Rural (0) or Urban (1) avg_glucose_level: average glucose level in blood bmi: body mass index smoking_status: never smoked (0), smokes (1), formerly smoked (2), Unknown* (3) stroke: 1 if the patient had a stroke or 0 if not Note: “Unknown” in smoking_status means that the information is unavailable for this patient You are going to handle the missing values first. Drop any rows that contain missing values and then drop the column id.(10 points) Build a Logistic Regression model to predict the stroke status and use all the columns except “Stroke” as independent variables. Split the data into Train and Test sets with 80% of data as Train set. Print the following values: Mean Absolute Error, Mean Squared Error, Root Mean Squared Error, accuracy score, and confusion matrix. (30 points) (note: you may get a warning message regarding the number of iterations, disregard the warning) Repeat part B using the support vector classifier and compare the models. (10 points) data2.csv
Read DetailsFor purposes of abiding by the COVERAGE requirements of a qu…
For purposes of abiding by the COVERAGE requirements of a qualified plan, a defined benefit plan must cover all employees who are at least 21 years old and has completed one year of service with the plan sponsor (12 months & 1000 hours).
Read DetailsUtilizing the top-down approach, an individual who earns $75…
Utilizing the top-down approach, an individual who earns $75,000 per year as an employee for Golf Enterprises, LLC and saves $13,000 of his earnings per year towards retirement will have a wage replacement ratio equal to 82.67%.
Read DetailsOrder: Critical care medication, Nitroglycerin IV titrated f…
Order: Critical care medication, Nitroglycerin IV titrated from 5-200 mcg/min. Available: Nitroglycerin IV 25 mg in 250 mL D5W. What is the mg/hr for the lowest ordered dose? _______ At what rate will the nurse program the infusion pump? Round your answer to the tenths. _______
Read DetailsOrder: Zosyn 3.375 mg in 100 mL every six hours. Administer…
Order: Zosyn 3.375 mg in 100 mL every six hours. Administer over 30 minutes. At what rate will the nurse program the infusion pump? Round your answer to the tenths. _______ The infusion started at 8:15 PM. When will the next dose be given? Write your answer in military time. _______
Read Details