Fireship · @fireship

Predict Horse Races with BigQuery #ML

Uploaded March 15, 2019 · Length 10:12

Predict Horse Races with BigQuery #ML

Summary

Learn how to use BigQuery to predict horse races with machine learning, including uploading data, creating a table, and querying the data.

  • bigquery
  • machine learning
  • horse racing
  • predictive modeling
  • data analysis

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:05

    one of my favorite things to do with

  3. 0:07

    technology is make money and by that of

  4. 0:09

    course I'm talking about gambling money

  5. 0:11

    the information in here is worth

  6. 0:12

    millions very nice thank you very much

  7. 0:17

    know what make like a tree and get out

  8. 0:20

    of here

  9. 0:21

    several months ago Google released a

  10. 0:23

    machine learning pipeline for their

  11. 0:25

    popular data warehouse bigquery in

  12. 0:27

    today's video you'll learn about sequel

  13. 0:28

    machine learning and cloud

  14. 0:29

    infrastructure with the end goal of

  15. 0:31

    building a predictive model that will

  16. 0:32

    help you determine the outcome of horse

  17. 0:34

    races if you're new to the channel I can

  18. 0:37

    subscribe and you can find a full

  19. 0:38

    walkthrough on fire ship i/o now I don't

  20. 0:41

    mean to disappoint you but you probably

  21. 0:42

    won't get rich betting on horses but by

  22. 0:44

    the end of this video you will know how

  23. 0:46

    to upload your data to big theory and

  24. 0:47

    then run machine learning models against

  25. 0:49

    it without needing to be a data

  26. 0:50

    scientist and the model we'll build will

  27. 0:52

    have predictive values but horse racing

  28. 0:53

    is still very random so use this at your

  29. 0:56

    own risk

  30. 0:56

    first of all what is bigquery and why

  31. 0:58

    would you want to use it it is a

  32. 1:00

    serverless data warehouse that allows

  33. 1:02

    you to store massive amounts of data and

  34. 1:04

    then query that data with standard

  35. 1:05

    sequel statements it provides a

  36. 1:07

    centralized place to put all of your

  37. 1:08

    data which might include things like

  38. 1:10

    fire store Excel spreadsheets legacy

  39. 1:12

    databases etc then you can make queries

  40. 1:14

    against this data to use it for combined

  41. 1:16

    reporting and as we'll see later in the

  42. 1:18

    video for machine learning just keep in

  43. 1:20

    mind it's not a production database so

  44. 1:21

    you wouldn't use it in your front-end

  45. 1:22

    applications for that you would use

  46. 1:24

    something like fire store or a regular

  47. 1:26

    sequel database to get started you just

  48. 1:28

    need to have a Google cloud platform or

  49. 1:29

    a firebase project then you can find

  50. 1:31

    bigquery under the Big Data panel and

  51. 1:33

    then I recommend pinning it to the top

  52. 1:35

    just so it's easy to access on the

  53. 1:36

    console now bigquery is designed to

  54. 1:38

    scale the huge amounts of data and by

  55. 1:39

    huge I mean petabytes of data so when

  56. 1:42

    you make a query it will queue that up

  57. 1:43

    as a job in the background but before we

  58. 1:45

    can get to that point we need to upload

  59. 1:47

    some data to bigquery there are many

  60. 1:49

    different ways to do this but we're just

  61. 1:50

    going to upload a CSV file to cloud

  62. 1:52

    storage and then connect it as a table

  63. 1:54

    to bigquery we're going to grab our

  64. 1:56

    horse racing data from a site called

  65. 1:58

    kaggle it's a platform that allows