bszek213 / ml_mlb Goto Github PK
View Code? Open in Web Editor NEWDeep Learning to Predict MLB Outcomes
Deep Learning to Predict MLB Outcomes
So it looks like I can run it fine but it seems like I might be missing something or a step? I ran python mlb_ml_classify_deep_learn_test.py test
and right after I ran python mlb_ml_classify_deep_learn_test.py notest
(this is on dev branch) they both seemed to work, then I ran python mlb_ml_classify_deep_learn.py tune or python mlb_ml_classify_deep_learn.py notune
which gave this error ::
Traceback (most recent call last):
File "mlb_ml_classify_deep_learn.py", line 558, in <module>
main()
File "mlb_ml_classify_deep_learn.py", line 556, in main
mlbDeep().run_analysis()
File "mlb_ml_classify_deep_learn.py", line 548, in run_analysis
self.get_teams()
File "mlb_ml_classify_deep_learn.py", line 87, in get_teams
self.all_data.drop(columns='cli',inplace=True)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/frame.py", line 4913, in drop
errors=errors,
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/generic.py", line 4150, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/generic.py", line 4185, in _drop_axis
new_axis = axis.drop(labels, errors=errors)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 6017, in drop
raise KeyError(f"{labels[mask]} not found in axis")
KeyError: "['cli'] not found in axis"
Then I ran python mlb_ml_classify_deep_learn.py test
which gave this ::
Need data for year: []
len data: 63458
Traceback (most recent call last):
File "mlb_ml_classify_deep_learn.py", line 558, in <module>
main()
File "mlb_ml_classify_deep_learn.py", line 556, in main
mlbDeep().run_analysis()
File "mlb_ml_classify_deep_learn.py", line 544, in run_analysis
self.get_teams()
File "mlb_ml_classify_deep_learn.py", line 87, in get_teams
self.all_data.drop(columns='cli',inplace=True)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/frame.py", line 4913, in drop
errors=errors,
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/generic.py", line 4150, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/generic.py", line 4185, in _drop_axis
new_axis = axis.drop(labels, errors=errors)
File "/mnt/f/repositories/ml_mlb/mlmlbvenv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 6017, in drop
raise KeyError(f"{labels[mask]} not found in axis")
KeyError: "['cli'] not found in axis"
There seems to be an error running mlb_ml_classify_deep_learn.py
so I ran mlb_ml_classify_deep_learn_test.py and got this ::
Traceback (most recent call last):
File ".\ml_mlb\mlb_ml_classify_deep_learn_test.py", line 1039, i
n <module>
main()
File ".\ml_mlb\mlb_ml_classify_deep_learn_test.py", line 1037, i
n main
mlbDeep().run_analysis()
File ".\ml_mlb\mlb_ml_classify_deep_learn_test.py", line 1035, i
n run_analysis
self.predict_two_teams()
File .\ml_mlb\mlb_ml_classify_deep_learn_test.py", line 459, in
predict_two_teams
with open('xgb_model.pkl', 'rb') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'xgb_model.pkl'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.