Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for random forest regression #15

Merged
merged 1 commit into from
Jun 24, 2018
Merged

Added test for random forest regression #15

merged 1 commit into from
Jun 24, 2018

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Jun 24, 2018

Added a test for #13. To generate the PMML file, I used:

library(randomForest)
library(pmml)

set.seed(1)

model <- randomForest(dist ~ speed, cars, ntree=3)

saveXML(pmml(model), "cars_rf.pmml")

print(predict(model, data.frame(speed=10)))

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.359% when pulling 7dfa07c on ankane:master into 924ed6a on asafschers:master.

1 similar comment
@coveralls
Copy link

coveralls commented Jun 24, 2018

Coverage Status

Coverage decreased (-0.2%) to 99.359% when pulling 7dfa07c on ankane:master into 924ed6a on asafschers:master.

@asafschers asafschers merged commit a435235 into asafschers:master Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants