Coder Social home page Coder Social logo

sabio's People

Contributors

chr2022-anonymous-repository avatar valevo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

sabio's Issues

fix padding of date strings

sorting is done on 'x-value' in Result object, so padded string can be unpadded (e.g. by converting to int and back)

RandomEngine.score leads to missing labels error in Pandas

2508490 2022-04-07 13:51:10,032 | Exception on /examples [GET] Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/var/www/flask/sabio/app.py", line 274, in get_examples cur_d, cur_e, cur_o, cur_s = _get_example() File "/var/www/flask/sabio/app.py", line 223, in _get_example scores, details = e.score_and_detail(d.data, **param_dict) File "/var/www/flask/sabio/src/engines/RandomEnginev0.py", line 75, in score_and_detail scores = self.score(objects, round_to=round_to, **param_dict) File "/var/www/flask/sabio/src/engines/RandomEnginev0.py", line 41, in score return self.constant_scores.loc[objects.index] File "/usr/local/lib/python3.8/dist-packages/pandas/core/indexing.py", line 895, in __getitem__ return self._getitem_axis(maybe_callable, axis=axis) File "/usr/local/lib/python3.8/dist-packages/pandas/core/indexing.py", line 1113, in _getitem_axis return self._getitem_iterable(key, axis=axis) File "/usr/local/lib/python3.8/dist-packages/pandas/core/indexing.py", line 1053, in _getitem_iterable keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False) File "/usr/local/lib/python3.8/dist-packages/pandas/core/indexing.py", line 1266, in _get_listlike_indexer self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing) File "/usr/local/lib/python3.8/dist-packages/pandas/core/indexing.py", line 1321, in _validate_read_indexer raise KeyError( KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported. The following labels were missing: Int64Index([ 2, 5, 8, 9, 10,\n ...\n 1140380, 1140385, 1140388, 1140389, 1153236],\n dtype='int64', name='ObjectID', length=144174). See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"

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.