Helper functions# Many of the modules in the ISLP module contain just a few helper functions. Clustering Make a toy dataset Cluster it Plot the dendrogram Generalized Additive Models Make a toy dataset Create a GAM Plot the partial dependence plot for first feature Fixing degrees of freedom Create a new GAM with the correctly fixed terms Survival Analysis Define a cumulative hazard Plot survival function Support Vector Machines Make a toy dataset Fit an SVM classifier Slicing through different features