Giter Site home page Giter Site logo

Comments (10)

annebyrne avatar annebyrne commented on May 31, 2024 4

This has fixed issue, and score works fine now. Thanks for your swift help @asafschers !

from scoruby.

asafschers avatar asafschers commented on May 31, 2024 2

Modified model_factory to identify random forest models by random forest text in extension element and released 0.3.2, should solve the issue for now.
@annebyrne @harrysalmon - Are there any other issues? scoring seems to work for me
@vruusmann - seems like miningModel element should have modelName="randomForest_Model" like the R version, what do you think?

from scoruby.

harrysalmon avatar harrysalmon commented on May 31, 2024 1

Thank you @asafschers

from scoruby.

asafschers avatar asafschers commented on May 31, 2024

Hey

  1. I can't reproduce the issue - the model is loaded when I run -
Scoruby.load_model('spec/fixtures/sklearn_format.txt')
  1. I think the model isn't loaded correctly because of the 10th TreeModel element (in Segment id="10") in your PMML file is missing a space between the attributes algorithmName and missingValueStrategy, when I added the space the .score error stopped and the model scored - I should add an indicative error message.

Please tell me if it works
Thanks!

from scoruby.

vruusmann avatar vruusmann commented on May 31, 2024

your PMML file is missing a space between the attributes algorithmName and missingValueStrategy

@annebyrne - Can you confirm that you have not edited this PMML file manually? That is, you have no idea how this space character went missing?

from scoruby.

annebyrne avatar annebyrne commented on May 31, 2024

Apologies - I had uploaded by accident the version I edited to test for the discrepancies in the XML. Will attach the original, trimmed version shortly.

from scoruby.

harrysalmon avatar harrysalmon commented on May 31, 2024

Thank you for looking into this @vruusmann and @asafschers. I've generated example PMML and included the python script to reproduce.

example_sklearn_rf.pmml.txt
example_sklearn_rf.py.txt

from scoruby.

annebyrne avatar annebyrne commented on May 31, 2024

Brill, thanks for the quick movement on this @asafschers. Will update issue shortly on whether this resolves our issue.

from scoruby.

vruusmann avatar vruusmann commented on May 31, 2024

@asafschers The MiningModel@modelName attribute is optional free-form text. It is not suitable for identifying the actual scoring algorithm (eg. RF vs. GBT) - please consider using the MiningModel/Segmentation@multipleModelMethod attribute for that (will be (weighted)average for RF-family of algorithms, and (weighted)sum for GBT-family of algorithms).

from scoruby.

asafschers avatar asafschers commented on May 31, 2024

Great, I'll use multipleModelMethod.
Thanks!

from scoruby.

Related Issues (8)

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.