Predict NBA Games With Python And Machine Learning

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 83

  • @Qhorin
    @Qhorin 2 роки тому +8

    I would also love to see actually predicting future games. Thanks for the content!

  • @mizew9149
    @mizew9149 2 роки тому +38

    Would love to see one on predicting future games. Great video. Very well done

  • @ByBraiiaN
    @ByBraiiaN 2 роки тому +5

    Wow. Would love to see one on predicting future games. Great video.

  • @alexandermackenzie5891
    @alexandermackenzie5891 2 роки тому +6

    Really enjoyed this! I'd love to see another video on how to predict future games. Thank you for the tutorial

  • @carlossoto1466
    @carlossoto1466 2 роки тому +3

    I would love to see the future games please, I enjoy these videos and it helps me learn

  • @beraviousargentino9865
    @beraviousargentino9865 2 роки тому +1

    Same for future predictors!!! THX FOR THIS!

  • @pelumiadeleke-ademola2813
    @pelumiadeleke-ademola2813 2 роки тому +2

    another great vid, would love one on future predictions

  • @artyom6230
    @artyom6230 2 роки тому +4

    It would be good if you can put a more detailed guide on Dataquest, to include predicting future matches using rolling averages etc. Would happily sign up just for that!

  • @matthewmoore8445
    @matthewmoore8445 2 роки тому

    GREAT Video! I will be coding this and Implementing in my personal work. I would love to see a future video on how you go about predicting future games. I would also love to see something just like this for player performance, at a game by game level.

  • @pandithammultilingualcompu1552

    Awesome explanation, I used this for my class, thank you

  • @tyler_russell
    @tyler_russell Рік тому

    Really great video. I learned some good ways to use list comprehensions in pandas to help with column names on top of the scikit learn fits. Thanks for this.

  • @mikekennedy7073
    @mikekennedy7073 Рік тому +1

    Great walk through. Would love to see how you update the next values for home and away teams

  • @TheDruss16
    @TheDruss16 10 місяців тому +1

    Excellent video that shows you how to use machine learning to identify the correlated factors that determine the outcome using previous games, but is a little misleading because it doesn't actually show you how to predict outcomes of future games. Would love to know where I can find this information, even if I have to pay for it.

  • @pauld428
    @pauld428 9 місяців тому

    Great video. Please make one about predicting future games.

  • @norgen4
    @norgen4 2 роки тому +2

    Please do one for future games!!

  • @meechmiliyan8965
    @meechmiliyan8965 2 роки тому

    Completed the first video, super awesome thank you!!! Does this video help with grabbing player stats and using AVG Reb, PTS, AST, etc to predict stats VS opponents ?

  • @invisiblegoat8186
    @invisiblegoat8186 2 місяці тому

    I am really like to learn the technique applied and logit used to improve the prediction. Gain a lot of knowledge from you !!

  • @michealwillis7500
    @michealwillis7500 2 місяці тому

    Absolute legend.

  • @jamesmostofi2420
    @jamesmostofi2420 Рік тому +1

    Please do a predictive video for future games 🙏🏻

  • @nikolaytoporkov3537
    @nikolaytoporkov3537 2 роки тому

    simply awesome, thank you

  • @tenienteale
    @tenienteale Рік тому

    here I'm waiting the video on predicting future games... maybe someday will come

  • @hodlsportclub
    @hodlsportclub Рік тому

    Great tutorial 👌🏾 by any chance did you make the video on how to up date the model

  • @greenfootprint2680
    @greenfootprint2680 11 місяців тому

    Amazing channel mate! Are you able to demo. how to deploy ML models into production and what we could use to fully automate this end to end? Preferably with systems/platforms that are free to use.

  • @dylanhaynes275
    @dylanhaynes275 Рік тому

    Great video, would be great if you could do one but that predicts total points scored, not necessarily in basketball.

  • @Straightshooter1995
    @Straightshooter1995 9 місяців тому

    Hi there, just curious what would you say are the main things to look for when predicting games

  • @CRKHB
    @CRKHB Рік тому +1

    Hi, how could I attach the season to the predictions to see how well the model did for each individual season?

  • @Nerfgunninja
    @Nerfgunninja Рік тому

    stay strong, Coulibaly is going to be a star

  • @eleftherias.3065
    @eleftherias.3065 Рік тому

    Hi. I have two questions.
    a) Where did you find the data to use for your test?
    b) How easy is it for someone who don't know programming to learn python?

  • @albertlarbi6231
    @albertlarbi6231 Рік тому

    This was a great video but I would be happy if you would do one for the prediction of future games

  • @Cobbtrades
    @Cobbtrades Рік тому

    When you doing the one to predict the future games i.e. value of 2 in the target column? Thanks

  • @haimanottiruneh2491
    @haimanottiruneh2491 2 роки тому +2

    How did you decide to chose ridge classifier?

    • @qpe04
      @qpe04 Рік тому

      I wonder why using ridge classifier but not logist regression in the SequentialFeatureSelector

  • @predictoredge_live
    @predictoredge_live 10 місяців тому +2

    Excellent video for learning, but doesn't actually show you how you can predict future games. Future games do not have all the box score stats, which make it difficult project outcomes for the future based upon what this video is demonstrating. Some help or an additional video would be much appreciated showing how to actually use this to predict future games (or games that have not yet occurred).

    • @esostoic
      @esostoic Місяць тому

      You would use the data prior to the matchup to predict

  • @shukkkursabzaliev1730
    @shukkkursabzaliev1730 Рік тому +1

    Hey! Great video (complicated too, gotta watch second time) I would personally benefit very much from a video on how to use this for future matches, pleaseee!

  • @adamkrasowski9181
    @adamkrasowski9181 Рік тому

    Hey,
    How long will it take to run SequentialFeatureSelector with the same parameters, but using RandomForestSelector or XGBoost as a model? Couple of hours , days ?

  • @Leon-nc3xk
    @Leon-nc3xk 2 роки тому

    Hello, what is the algorithm used by the model and where could I get information on the logic behind the algorithm used by the model?? Thank you.

  • @jordanw4822
    @jordanw4822 Рік тому

    Please make a video on how to predict future games!!🙏🙏

  • @PjFlipStudio
    @PjFlipStudio 10 місяців тому

    please make video on how to predict future games

  • @codercrisYT
    @codercrisYT Рік тому +2

    give this man move views so we get another part !!!!

  • @nishchay89
    @nishchay89 Рік тому

    Hi!
    Why did we use ridge classification?

  • @coconutnut21
    @coconutnut21 11 місяців тому

    would love to see total score predictor sir.

  • @usernameispassword4023
    @usernameispassword4023 Рік тому

    Hi, I'm curious as to why this only results in a 64% accuracy.
    For example, something as simple as comparing the records of the teams at the time they've played and predicting the one with higher win% to win would result in around a 68% accuracy for the 2021-22 season.
    Is this due to ridge classification?

  • @brianbutler6672
    @brianbutler6672 9 місяців тому

    I've been working with this code for about three weeks now and I have successfully scraped all of the player stats too and want to somehow add a 'lineup' feature that looks at the MP of each player and how productive they tend to be to further improve the model. Any chance you would be willing to help me with that?

  • @esostoic
    @esostoic Місяць тому

    You introduced leakage/lookahead bias by scaling the entire dataset at once before training. It would be better to add it to a pipeline that scales the train test splits appropriately.

  • @ultieme007
    @ultieme007 7 місяців тому

    at 38:48 i get an error when running the function find team averages for last 10 games, that i can not resolve. would it have something to do with the error showing in the video, the futurewarning?

    • @josechua669
      @josechua669 4 місяці тому

      did u figure this out?

  • @williamrowe2296
    @williamrowe2296 2 роки тому

    How would I filter out rows of games that were in the playoffs so I just have regular season games in the dataframe?

  • @bhavyamehra6931
    @bhavyamehra6931 Рік тому

    Doesnt rolling 10 include current game for rolling average? wouldnt that be a leakage?

    • @SMK3211
      @SMK3211 7 місяців тому

      No, because you predict always the next game

  • @rjvaughn
    @rjvaughn Рік тому

    When computing the rolling averages, why did you not use the 'left = X' paramater, like you did in your football predictor video? Don't your rolling averages include knowledge of the current game you are predicting?

  • @Philgob
    @Philgob 2 роки тому

    I need some clarification here... The data in the training and test set contain the points scored by each teams, how can the model not predict exactly if the game is a win or a loss? It literally just has to check if the team has more points and return true if it does... I am confused

    • @Dataquestio
      @Dataquestio  2 роки тому +1

      We're predicting the winner of the next game. The algorithm doesn't know what happened in the next game when it is making predictions.

    • @Philgob
      @Philgob 2 роки тому

      @@Dataquestio facepalm

  • @AbrarMuhtasim
    @AbrarMuhtasim 2 роки тому

    'Customer segmentation in retail using machine learning' please make a video on this topic using real dataset.😥😥🙏🙏

  • @nishchay89
    @nishchay89 Рік тому

    Why do we need player stats which have max in front of them? What is the purpose of max stats ? Can anyone help clarify please?

  • @AlphaDoggs
    @AlphaDoggs 2 роки тому +1

    predict future nfl games please

  • @isi6402
    @isi6402 8 місяців тому

    Hi sir,
    Where to deploy this project.

  • @josechua669
    @josechua669 4 місяці тому

    Having issues with the rolling averages. Recieving a value error, saw a couple other people with the same error did anybody manage to figure it out?

  • @kunal6353
    @kunal6353 2 роки тому

    which ide u r using

  • @marcyoussef3313
    @marcyoussef3313 Рік тому

    hello Please can you show how can we select 2 teams and than the AI would chose who wins , like please write the code in the reply

  • @kfaslus
    @kfaslus 11 місяців тому

    hello brother, can you help me with this line that is generating the following error:
    line:
    df_rolling = df[list(selected_columns) + ["won", "team", "season"]]
    def find_team_averages(team):
    rolling = team.rolling(10).media().
    return rolling
    df_rolling = df_rolling.groupby(["team", "season"], group_keys=False).apply(find_team_averages)
    error:
    DataError: Cannot aggregate non-numeric type: object.

    • @SMK3211
      @SMK3211 11 місяців тому

      Did you manage to solve that?

    • @bena.9440
      @bena.9440 11 місяців тому +5

      I believe you need to change that line to rolling = team[selected_columns].rolling(10).mean()

    • @AIMadesy
      @AIMadesy 10 місяців тому

      this works@@bena.9440

    •  8 місяців тому

      @@bena.9440 Yes it is

    • @josechua669
      @josechua669 4 місяці тому

      @@bena.9440 u saved me

  • @TjSpoonManJacques
    @TjSpoonManJacques 2 роки тому

    INSTANT FOLLOW!!!!

  • @EzraSchroeder
    @EzraSchroeder 2 роки тому +1

    We would really like to see a video on predicting future games in the NBA. Even though this would be a horrible use of PyTorch, I would like to see it done with PyTorch, as well as a wide variety of other machine learning models & technologies (sklearn, etc.). It would also be nice to see some work with regards to this done on Kaggle as well, for example using NBA datasets as well as NCAA datasets.

  • @ramfanintexas
    @ramfanintexas 2 роки тому

    does this for loop need to be updated for my pc?
    for url in standings_pages:
    save_path = os.path.join(STANDINGS_DIR, url.split("/")[-1])
    if os.path.exists(save_path):
    continue

  • @kadbed
    @kadbed 11 місяців тому +1

    Is anyone facing 'Cannot aggregate non-numreic type:object' error while trying to this:
    df_rolling = df_rolling.groupby(["team", "season"], group_keys=False).apply(find_team_averages)

    • @kfaslus
      @kfaslus 11 місяців тому +1

      I have the same problem with that error.

    • @akashgahlaut4078
      @akashgahlaut4078 9 місяців тому

      i have solved this issue

    • @DaniloKacanski875
      @DaniloKacanski875 9 місяців тому

      How did u solve that?
      @@akashgahlaut4078

    • @josechua669
      @josechua669 4 місяці тому

      @@akashgahlaut4078 How did you resolve

  • @izchak333
    @izchak333 Рік тому

    the full
    del in begining shuld be like this
    del df['index_opp']
    del df['mp.1']
    del df['mp_opp.1']
    del df['mp_max_opp.1']
    del df['mp_max.1']

  • @mkzzzzzzzzzz1
    @mkzzzzzzzzzz1 2 роки тому +1

    Unrelated, but the previous nba score scraper took like 3 days to scrape 2016-2022. OH MY DAYS.

    • @Dataquestio
      @Dataquestio  2 роки тому +2

      Yeah, it has to scrape a lot of records (8500), and there is a time.sleep in the loop. Each record should take about 6 seconds to download. There's also a small chance that it will time out after 30 seconds of trying and need to retry. We can guesstimate the runtime with (8500 * 6 + 8500 * .05 * 60) / 3600 = 21.25, so it should take about 21 hours to run.
      You could try reducing the sleep time and timeout times for playwright, but there is a risk of getting banned by the server.

    • @hodlsportclub
      @hodlsportclub Рік тому

      How do I add to the date selection line this new season from October to now