Giter Site home page Giter Site logo

Support for GBM regression about scoruby HOT 5 OPEN

asafschers avatar asafschers commented on May 31, 2024
Support for GBM regression

from scoruby.

Comments (5)

asafschers avatar asafschers commented on May 31, 2024

Hey Jano

Seems like Scoruby should support 4.3 GBM PMMLs that doesn't contain OutputField
Please attach an example of the PMML that doesn't work for you so I can look into it

Thanks!

from scoruby.

jsuchal avatar jsuchal commented on May 31, 2024

@asafschers sorry for the late reply. Here are two models learned in R, using standard gbm message. First is exported to pmml using pmml library, second using r2pmml library. Both fail with RuntimeError (model not supported)

irb(main):003:0> m = Scoruby.load_model('out2.pmml')
Traceback (most recent call last):
        7: from /home/johno/.rbenv/versions/2.6.5/bin/irb:23:in `<main>'
        6: from /home/johno/.rbenv/versions/2.6.5/bin/irb:23:in `load'
        5: from /home/johno/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        4: from (irb):3
        3: from (irb):3:in `rescue in irb_binding'
        2: from /home/johno/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/scoruby-0.3.3/lib/scoruby.rb:21:in `load_model'
        1: from /home/johno/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/scoruby-0.3.3/lib/scoruby/model_factory.rb:21:in `factory_for'
RuntimeError (model not supported)

models.zip

Pretty standard stuff in R e.g.

t = gbm(Sepal.Length ~ ., data = iris, verbose = TRUE, interaction.depth = 5, cv.folds = 5, train.fraction = 0.9, n.trees=50)

from scoruby.

jsuchal avatar jsuchal commented on May 31, 2024

Btw this seems to work find in master. Any chance for a version bump on rubygems?

from scoruby.

jsuchal avatar jsuchal commented on May 31, 2024

However this line looks extremely suspicious https://github.com/asafschers/scoruby/blob/master/lib/scoruby/models/gradient_boosted_model/model.rb#L23 for basic regression there should be no transformation. Is this for logistic regression only?

from scoruby.

caioeps avatar caioeps commented on May 31, 2024

Btw this seems to work find in master. Any chance for a version bump on rubygems?

+1 on this, @asafschers.

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.