GithubHelp home page GithubHelp logo

rstudio-conf-2020 / intro-to-ml-tidy Goto Github PK

View Code? Open in Web Editor NEW
179.0 179.0 89.0 131.12 MB

Intro to Machine Learning with the Tidyverse

Home Page: https://conf20-intro-ml.netlify.com/

License: Creative Commons Attribution Share Alike 4.0 International

CSS 10.27% HTML 66.67% Jupyter Notebook 5.58% JavaScript 16.60% TeX 0.06% Shell 0.14% Python 0.35% R 0.34%

intro-to-ml-tidy's People

Contributors

apreshill avatar chendaniely avatar dcossyleon avatar josiahparry avatar mine-cetinkaya-rundel avatar nzgwynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intro-to-ml-tidy's Issues

Fitting a lm model

Right before "Your turn 2" in the 01-prediction slides (https://conf20-intro-ml.netlify.com/materials/01-predicting/)

You use the custom fit_dat function to fit the lm model

lm_spec <- 
   linear_reg() %>% # Pick linear regression
   set_engine(engine = "lm") # set engine

fit_data(Sale_Price ~ Gr_Liv_Area, model = lm_spec, data = ames)

You can also do it straight in parsnip now without using the custom fit_data function now

lm_spec <- parsnip::linear_reg() %>%
  parsnip::set_engine(engine = "lm")

parsnip::fit(lm_spec, Sale_Price ~ Gr_Liv_Area, data = ames)

It's even pipe-able!

Not sure if this is a new feature that was added or just to stay consistent with the trees/random forest slides later on.

Not using training data

In the 06-recipes slides:

image
I think this should've read ames_training instead of just ames.
There are a lot of slides before it that use ames where it should be using ames_training, but this example gets built on to train the model, so it seems especially important here.

#18 is also related

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.