Giter Site home page Giter Site logo

Comments (6)

warenlg avatar warenlg commented on June 16, 2024

Issue 1.

First pushing the model to modelforge failed with the following error message:

pkg_resources.VersionConflict: (semantic-version 2.8.2 (/home/waren/.local/lib/python3.6/site-packages), Requirement.parse('semantic-version<=2.6.0,>=2.3.1'))

The issue comes from asdf and is labelled with high-priority asdf-format/asdf#702.
A quick workaround is to downgrade semantic-version to version 2.6.0

from identity-matching.

warenlg avatar warenlg commented on June 16, 2024

Issue 2.

After saving the model using the sklearn API behind XGBClassifier, if we load the model with load_model xgboost native function, we hit the following error when trying to predict() something:
AttributeError: 'XGBClassifier' object has no attribute '_le'

The issue has already been raised here and the xgboost maintainers recommend to save the model using pickle for sklearn models objects like XGBClasssifier dmlc/xgboost#3829

from identity-matching.

warenlg avatar warenlg commented on June 16, 2024

Both issues above are overcome:

  1. by bumping asdf to 2.4.2 in modelforge src-d/modelforge#107
  2. by adding the line xgb_cls._le = LabelEncoder().fit([False, True]) in the code snippet example usage in src-d/models#28

from identity-matching.

vmarkovtsev avatar vmarkovtsev commented on June 16, 2024

Shall we close then?

from identity-matching.

warenlg avatar warenlg commented on June 16, 2024

It is waiting for src-d/models#28 merging

from identity-matching.

warenlg avatar warenlg commented on June 16, 2024

src-d/models#28 is merged so we can close this.

from identity-matching.

Related Issues (20)

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.