Model Tuning & Pipeline

  1. Predict Sleep Disorder Risk

    Question 1 of 1

    • Using sleep_health_dataset, predict risk of sleep disorder. 1. Load and explore the dataset. 2. Handle missing values and duplicates. 3. Encode categorical features and scale numerical features using a pipeline. 4. Train SVC and tune hyperparameters using RandomizedSearchCV. 5. Print best hyperparameters and score. 6. Save the best model pipeline to disk using joblib. 7. Load the saved model in VS-Code and make predictions.