Comments (10)
This has fixed issue, and score works fine now. Thanks for your swift help @asafschers !
from scoruby.
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.
Thank you @asafschers
from scoruby.
Hey
- I can't reproduce the issue - the model is loaded when I run -
Scoruby.load_model('spec/fixtures/sklearn_format.txt')
- 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.
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.
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.
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.
Brill, thanks for the quick movement on this @asafschers. Will update issue shortly on whether this resolves our issue.
from scoruby.
@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.
Great, I'll use multipleModelMethod.
Thanks!
from scoruby.
Related Issues (8)
- RubyML list HOT 3
- Small wiki update HOT 2
- Support for GBM regression HOT 5
- 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
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.