Giter Club home page Giter Club logo

epl-prediction-2017's People

Contributors

rsibi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

epl-prediction-2017's Issues

ValueError: setting an array element with a sequence.

Hi there, love the work you did on this project, was able to follow your guide to the core but i am getting errors in predicting the results for knn and XGB.

This is what i get:

ValueErrorTraceback (most recent call last)
in ()
----> 1 y_pred_XGB = clf_XGB.predict(X_predict)
2 y_pred_knn = clf_knn.predict(X_predict)

/usr/local/lib/python2.7/dist-packages/xgboost/sklearn.pyc in predict(self, data, output_margin, ntree_limit)
460
461 def predict(self, data, output_margin=False, ntree_limit=0):
--> 462 test_dmatrix = DMatrix(data, missing=self.missing)
463 class_probs = self.booster().predict(test_dmatrix,
464 output_margin=output_margin,

/usr/local/lib/python2.7/dist-packages/xgboost/core.pyc in init(self, data, label, missing, weight, silent, feature_names, feature_types)
253 data, feature_names, feature_types = _maybe_pandas_data(data,
254 feature_names,
--> 255 feature_types)
256 label = _maybe_pandas_label(label)
257

/usr/local/lib/python2.7/dist-packages/xgboost/core.pyc in _maybe_pandas_data(data, feature_names, feature_types)
179 msg = """DataFrame.dtypes for data must be int, float or bool.
180 Did not expect the data types in fields """
--> 181 raise ValueError(msg + ', '.join(bad_fields))
182
183 if feature_names is None:

ValueError: DataFrame.dtypes for data must be int, float or bool.
Did not expect the data types in fields HAS, HDS, AAS, ADS

i have tried to convert the data frame to .astype(np.float64) but it is still not working please help.

Thanks.

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.