Giter Club home page Giter Club logo

ml_mlb's People

Contributors

bszek213 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wealthace

ml_mlb's Issues

Data Missing?

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"

Error runnin

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'

Results :

After running the development branch, this is what I received. I'm unsure about how to interpret these results. Could you please explain how to interpret them?

Screenshot 2023-09-24 at 1 20 02 AM

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.