Code for STAT542: Statistical Learning

matrix_sqrt | Matrix Square Root |

mydist | Euclidean Distance |

nearest_neighbors | Nearest Neighbors |

predict_knn | K-Nearest Neighbor Predictions |

sample_covariance | Sample Variance-Covariance Matrix |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.