All Projects → dlab-berkeley → R-Machine-Learning

dlab-berkeley / R-Machine-Learning

Licence: other
D-Lab's 6 hour introduction to machine learning in R. Learn the fundamentals of machine learning, regression, and classification, using tidymodels in R.

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to R-Machine-Learning

100daysofmlcode
My journey to learn and grow in the domain of Machine Learning and Artificial Intelligence by performing the #100DaysofMLCode Challenge.
Stars: ✭ 146 (+440.74%)
Mutual labels:  regression, classification
Java Deep Learning Cookbook
Code for Java Deep Learning Cookbook
Stars: ✭ 156 (+477.78%)
Mutual labels:  regression, classification
Machine Learning With Python
Practice and tutorial-style notebooks covering wide variety of machine learning techniques
Stars: ✭ 2,197 (+8037.04%)
Mutual labels:  regression, classification
Machine Learning Projects
This repository consists of all my Machine Learning Projects.
Stars: ✭ 135 (+400%)
Mutual labels:  regression, classification
Dynaml
Scala Library/REPL for Machine Learning Research
Stars: ✭ 195 (+622.22%)
Mutual labels:  regression, classification
Interactive machine learning
IPython widgets, interactive plots, interactive machine learning
Stars: ✭ 140 (+418.52%)
Mutual labels:  regression, classification
Applied Ml
Code and Resources for "Applied Machine Learning"
Stars: ✭ 156 (+477.78%)
Mutual labels:  regression, classification
Neuroflow
Artificial Neural Networks for Scala
Stars: ✭ 105 (+288.89%)
Mutual labels:  regression, classification
Uci Ml Api
Simple API for UCI Machine Learning Dataset Repository (search, download, analyze)
Stars: ✭ 190 (+603.7%)
Mutual labels:  regression, classification
Data Science Toolkit
Collection of stats, modeling, and data science tools in Python and R.
Stars: ✭ 169 (+525.93%)
Mutual labels:  regression, classification
Tiny ml
numpy 实现的 周志华《机器学习》书中的算法及其他一些传统机器学习算法
Stars: ✭ 129 (+377.78%)
Mutual labels:  regression, classification
Deepfashion
Apparel detection using deep learning
Stars: ✭ 223 (+725.93%)
Mutual labels:  regression, classification
Mlr
Machine Learning in R
Stars: ✭ 1,542 (+5611.11%)
Mutual labels:  regression, classification
Benchmarks
Comparison tools
Stars: ✭ 139 (+414.81%)
Mutual labels:  regression, classification
Gpstuff
GPstuff - Gaussian process models for Bayesian analysis
Stars: ✭ 106 (+292.59%)
Mutual labels:  regression, classification
Snape
Snape is a convenient artificial dataset generator that wraps sklearn's make_classification and make_regression and then adds in 'realism' features such as complex formating, varying scales, categorical variables, and missing values.
Stars: ✭ 155 (+474.07%)
Mutual labels:  regression, classification
Lossfunctions.jl
Julia package of loss functions for machine learning.
Stars: ✭ 89 (+229.63%)
Mutual labels:  regression, classification
Machine Learning Algorithms
A curated list of almost all machine learning algorithms and deep learning algorithms grouped by category.
Stars: ✭ 92 (+240.74%)
Mutual labels:  regression, classification
Remixautoml
R package for automation of machine learning, forecasting, feature engineering, model evaluation, model interpretation, data generation, and recommenders.
Stars: ✭ 159 (+488.89%)
Mutual labels:  regression, classification
Lightautoml
LAMA - automatic model creation framework
Stars: ✭ 196 (+625.93%)
Mutual labels:  regression, classification

D-Lab's Introduction to Machine Learning with tidymodels

This repository contains the materials for D-Lab's Introduction to Machine Learning with tidymodels. Prior experience with the concepts in R Fundamentals and Data Wrangling and Manipulation in R is assumed.

Workshop Goals

In this workshop, we provide an introduction to machine learning algorithms by making use of the tidymodels package. First, we discuss what machine learning is, what problems it works well for, and what problems it might work less well for. Then, we'll explore the tidymodels framework to learn how to fit machine learning models in R. Finally, we will apply the tidymodels framework to explore multiple machine learning algorithms in R.

By the end of the workshop, learners should feel prepared to explore machine learning approaches for their data problems.

Familiarity with R programming and data wrangling is assumed. If you are not familiar with the materials in Data Wrangling and Manipulation in R, we recommend attending that workshop first. In addition, this workshop focuses on how to implement machine learning approaches. Learners will likely benefit from previous exposure to statistics.

Installation Instructions

We will use RStudio to go through the workshop materials, which requires the installation of both the R language and the RStudio software. Complete the following steps:

  1. Download R: Follow the links according to the operating system that you are running. Download the package, and install R onto your computer. You should install the most recent version (at least version 4.0).

  2. Download RStudio: Install RStudio Desktop. This should be free. Do this after you have already installed R. The D-Lab strongly recommends an RStudio edition of 2022.02.0+443 "Prairie Trillium" or higher.

  3. Download these workshop materials:

  • Click the green "Code" button in the top right of the repository information.
  • Click "Download Zip".
  • Extract this file to a folder on your computer where you can easily access it (we recommend Desktop).
  1. Optional: if you're familiar with git, you can instead clone this repository by opening a terminal and entering git clone [email protected]:dlab-berkeley/Machine-Learning-with-tidymodels.git.

  2. Make sure the following packages are installed on your computer

install.packages(c("tidyverse", "tidymodels", "here","pROC","glmnet", "ranger", "rpart", "xgboost","rpart.plot", "doParallel", "palmerpenguins", "ISLR2", "klaR", "stacks"))

In addition you'll need to install the following package from github

remotes::install_github("tidymodels/discrim")

Run the Code

Now that you have all the required software and materials, you need to run the code:

  1. Launch the RStudio software.

  2. Use the file navigator to find the Machine-Learning-with-tidymodels folder you downloaded from Github.

  3. Open up the file corresponding to the part of the workshop you're attending.

  4. If necessary run the initial line of code renv::init(). You may see an error and a message "The project library is out of sync with the lockfile." If so, run renv::restore().

  5. Place your cursor on a given line and press "Command + Enter" (Mac) or "Control + Enter" (PC) to run an individual line of code.

  6. The solutions folder contains the solutions to the challenge problems.

Is R not working on your laptop?

This workshop makes use of many packages within the R ecosystem. For that reason, we have found it to be easier to use R on your local machine.

If you do not have R installed and the materials loaded on your workshop by the time it starts, we strongly recommend using the UC Berkeley Datahub to run the materials for these lessons. You can access the DataHub by clicking this link. Some users may find that they have to click the link twice if the materials do not load initially.

The DataHub downloads this repository, along with any necessary packages, and allows you to run the materials in an RStudio instance on UC Berkeley's servers. No installation is needed from your end - you only need an internet browser and a CalNet ID to log in. By using the DataHub, you can save your work and come back to it at any time. When you want to return to your saved work, go straight to DataHub, sign in, and click on the Machine-Learning-with-tidymodels folder.

Additional Resources

This workshop draws heavily on the following resources:

Tidy Modeling with R by Max Kuhn and Julia Silge.

An Introduction to Statistical Learning by James, Witten, Hastie, and Tibshirani

"Machine Learning Methods Economists Should Know About" by Athey and Imbens

Feature Engineering and Selection: A Practical Approach for Predictive Models by Kuhn and Johnson (2019)

The Elements of Statistical Learning by Hastie, Friedman, and Tibshirani

Deep Learning by Goodfellow, Bengio, and Courville

Other D-Lab R Workshops

Basic Competency

Intermediate/Advanced Competency

Contributors

Alex Stephenson

Previous iterations of D-Lab's Machine Learning with R were created by:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].