Comments (5)
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.
@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)
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.
Btw this seems to work find in master. Any chance for a version bump on rubygems?
from scoruby.
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.
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)
- RubyML list HOT 3
- Small wiki update HOT 2
- Decision Trees HOT 14
- Namespace the files under lib directory HOT 3
- Request to add Naive Bayes model HOT 7
- Support for CART (binary splits) vs CHAID HOT 3
- Support for sklearn2pmml generated PMML HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scoruby.