Baseball Prediction using Machine Learning - Building the First Model

  Рет қаралды 7,421

numeristical

numeristical

Күн бұрын

Пікірлер: 43
@CarlosHinojosa-c8d
@CarlosHinojosa-c8d 10 ай бұрын
This is great, excellent content!! What a wonderful way to apply the knowledge I'm learning on my certificates!
@numeristical
@numeristical 10 ай бұрын
Glad you like it! Tell your friends!
@JPPHandicapping
@JPPHandicapping Жыл бұрын
Really an excellent video. Thank you so much for providing this content for free.
@numeristical
@numeristical Жыл бұрын
Thanks! Tell your friends! :)
@mikemilana2217
@mikemilana2217 11 ай бұрын
I’ve been looking for something like this thanks for posting!
@numeristical
@numeristical 11 ай бұрын
Glad you like it!
@josephsinclair2399
@josephsinclair2399 Жыл бұрын
Exactly what I've been looking for, thanks for the content
@numeristical
@numeristical Жыл бұрын
Glad you like it!
@anyssalucena6822
@anyssalucena6822 Жыл бұрын
Fantastic ! Great content
@numeristical
@numeristical Жыл бұрын
Thanks! Be sure to watch the whole series :)
@jefraz2003
@jefraz2003 Жыл бұрын
Great videos!! I was wondering do I need a specific version of Visual Studio to run these or will the free version work? Thanks!
@numeristical
@numeristical Жыл бұрын
Glad you like them! I'm a Mac person so don't know the details about Visual Studio unfortunately. Any way to use Jupyter on Python should work though...
@jefraz2003
@jefraz2003 Жыл бұрын
@@numeristical thank you! I am still having trouble installing mL_insights and structureboost. I keep getting the error: Failed building wheel for splinecalib. Even if I am running Jupyter, I will still need these correct? Thanks for the help!
@numeristical
@numeristical Жыл бұрын
hmmm.... yeah, those errors have popped up recently. I think it is the newer versions of Python that are causing some trouble. You might try using Python 3.9 and see if that helps (that's the version I am developing on). I plan to remove the SplineCalib dependency from StructureBoost soon, so that should solve the problem for that package at least (once I can push out a change)
@jefraz2003
@jefraz2003 Жыл бұрын
@@numeristical thanks for the reply! Tried Python 3.9 and still get the errors for both. I will try and wait for the new package.
@byagnik
@byagnik 11 ай бұрын
Did you get any solution? I am still running into the error you mentioned@@jefraz2003
@Andrew-nj4vi
@Andrew-nj4vi Жыл бұрын
Fantastic video. Quick question though. When running the structure boost model, I am running into the following error: TypeError Traceback (most recent call last) Cell In[38], line 1 ----> 1 stb1 = stb.StructureBoost(num_trees=2000,learning_rate=.02,max_depth=3) 2 stb1.fit(X_train, y_train, eval_set=(X_valid, y_valid), early_stop_past_steps=5) File structure_gb.pyx:126, in structureboost.structure_gb.StructureBoost.__init__() TypeError: __init__() takes at least 3 positional arguments (2 given) Any advice? Thanks!
@numeristical
@numeristical Жыл бұрын
Thanks for the comment! You are right - I made some changed to my local version of StructureBoost and forgot to push them out. I'll fix the notebook now and push out an updated version that works...
@numeristical
@numeristical Жыл бұрын
As a quick fix, replace that cell with these lines: fc = stb.get_basic_config(X_train, stb.default_config_dict()) stb1 = stb.StructureBoost(max_depth=3, learning_rate=.02, feature_configs = fc, num_trees=2000) stb1.fit(X_train, y_train, eval_set=(X_valid, y_valid), early_stop_past_steps=5) Let me know if that works. I'll also fix the notebook. Really appreciate you finding this bug!
@Andrew-nj4vi
@Andrew-nj4vi Жыл бұрын
@@numeristical yes that did work for me! Thank you!
@snowna5196
@snowna5196 2 ай бұрын
Still getting an error with installing structureboost and ml_insights. It says that note: This error originates from a subprocess, and is likely not a problem with pip. I think it is with splinecalib. Would love if this could be fixed and if I can get an invite to the discord channel so I can ask questions related to this. Thank you.
@numeristical
@numeristical 2 ай бұрын
Sorry for the problems. I hope to have some bandwidth next week to take a look and hopefully resolve the issues. In the meantime here is a discord invite: discord.gg/hpYm56wg
@printhelloworld1413
@printhelloworld1413 7 ай бұрын
Good stuff! Thanks
@numeristical
@numeristical 7 ай бұрын
Glad you liked it!
@dhruthkesani2707
@dhruthkesani2707 2 күн бұрын
Hello, for some reason I can't install structure boost. I keep getting the same errors over and over. I even uninstalled and reinstalled anaconda on my system. The following are some of the errors I keep getting: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for structureboost Failed to build structureboost ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (structureboost) Please help me figure this out as I would like to continue with the videos. I enjoy the videos so far and would truly appreciate your help!
@numeristical
@numeristical Күн бұрын
try `pip install structureboost --no-build-isolation`
@ItsRabb
@ItsRabb Жыл бұрын
Would you know why I could be getting this error? I have tried just about everything from even downloading the tar files directly and moving into the correct folder to see if that would help. I even downgraded python to exactly 3.9.13 Cannot figure out why it will not import up to structureboost and ml_insights. Import "structureboost" could not be resolved Import "ml_insights" could not be resolved Import "structureboost" could not be resolved
@numeristical
@numeristical Жыл бұрын
Haven't seen that error myself. Googlng "import could not be resolved" suggests it might have something to do with vscode. You might try readinng some of the posts related to the error to see if they are applicable to your environment
@nathanbryant53
@nathanbryant53 3 ай бұрын
I'm having trouble installing structure boost in Python 3.11.5. The error I'm getting is: Getting requirements to build wheel did not run successfully. Has anyone else had this issue or have a solution?
@numeristical
@numeristical 3 ай бұрын
I just sent you an email but unfortunately I don't have a solution yet
@onpoint819
@onpoint819 3 ай бұрын
getting error trying to install structure boost. anyone know how to fix? I'm on python 3.12.4
@numeristical
@numeristical 2 ай бұрын
Sorry - I need to get around to doing some fixes. Others have had the same problem. If you can post an issue on github (if that's something you know how to do) with the error message, that would be helpful.
@Andrew-nj4vi
@Andrew-nj4vi Жыл бұрын
Hello again, I am running into another error when running: preds_stb = stb1.predict(X_test) ValueError Traceback (most recent call last) Cell In[23], line 1 ----> 1 preds_stb = stb1.predict(X_test) File structure_gb.pyx:516, in structureboost.structure_gb.StructureBoost.predict() File structure_gb.pyx:587, in structureboost.structure_gb.StructureBoost._predict_fast() File structure_gb.pyx:788, in structureboost.structure_gb.predict_with_tensor_c() ValueError: Buffer dtype mismatch, expected 'long' but got 'long long' Thanks!
@numeristical
@numeristical Жыл бұрын
Hmmm... I've seen issues like this before. Can you file a bug on the github page for structureboost? (If you know how to do that) It would help to know what OS, version of python, etc you are using (I've seen this happen with Windows users - I develop everything on Mac).
@numeristical
@numeristical Жыл бұрын
@Andrew I found the problem - need to make a patch in the structureboost code. In the meantime, if you replace `predict` with `_predict_py` you should be able to get that line to run (albeit slower). However, it will likely still fail when you reach the `ice_plot`
@numeristical
@numeristical Жыл бұрын
@Andrew This (hopefully) should be resolved with the latest version of structureboost. Please upgrade to 0.4.1 (or higher) and let me know if things work now
@realsportsbrain
@realsportsbrain Жыл бұрын
Hello, great video, was wondering about this since I'm following along, why would I get this error when installing ml-insights :: splinecalib/loss_fun_c.c:198:12: fatal error: longintrepr.h: No such file or directory 198 | #include "longintrepr.h" |
@numeristical
@numeristical Жыл бұрын
This seems to be an incompatibility with Cython that was introduced with Python 3.11. You might try downgrading to Python 3.9 and see if that helps. See this thread for more info: github.com/aio-libs/aiohttp/issues/6600
@My_oh_face
@My_oh_face 3 ай бұрын
I want to build a Bayesian model to help me predict MLB outcomes. i know nothing about coding but im a ridiculously fast learner when i want to be. plus i plan on using chat gpt to help me. I also wanted human guidance. which brings me here. Can we go on this journey together? or do i need to take some beginner courses? any feedback from anyone reading this is welcomed...
@numeristical
@numeristical 3 ай бұрын
Feel free to join the discord. Some people there may be able to help. Invite below: discord.gg/rqyZTyct
@austinolson9388
@austinolson9388 3 ай бұрын
Can you send me a discord invite to your server.
@numeristical
@numeristical 3 ай бұрын
discord.gg/tRRxvGxK
Baseball Prediction using Machine Learning - Getting Odds Data
23:40
AdaBoost, Clearly Explained
20:54
StatQuest with Josh Starmer
Рет қаралды 773 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 63 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 7 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 21 МЛН
Learning Pandas for Data Analysis? Start Here.
22:50
Rob Mulla
Рет қаралды 111 М.
Baseball Prediction using Machine Learning - Data Wrangling
27:14
Predicting the Winning Team with Machine Learning
29:37
Siraj Raval
Рет қаралды 225 М.
Introduction to NFL Data with Python (2023)
43:09
MFANS
Рет қаралды 14 М.
Predict Baseball Stats using Machine Learning and Python
54:59
Learn R with Baseball Data
17:49
Malter Analytics
Рет қаралды 10 М.
Baseball First 5 Innings Basic Model
24:02
Wagered On Tilt
Рет қаралды 3,7 М.
Web Scraping the MLB
21:54
Software With Shawn
Рет қаралды 1,1 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 63 МЛН