Skip to content

Forest::loadDataForPrediction#780

Open
josephmure wants to merge 1 commit intoimbs-hl:masterfrom
josephmure:loadData
Open

Forest::loadDataForPrediction#780
josephmure wants to merge 1 commit intoimbs-hl:masterfrom
josephmure:loadData

Conversation

@josephmure
Copy link
Copy Markdown

This PR proposes a small addition to the Forest class: a loadDataForPrediction method to load data for an already trained Forest without having to call the Forest::initR method.

I am proposing this because I am trying to wrap the C++ core of Ranger into OpenTURNS (I have a prototype here) and this feature would be useful.

Maybe it could also help solve #133 (comment)

One thing I am wondering is whether Forest::initInternal needs to be called in prediction mode. I made Forest::loadDataForPrediction call it to try to be on the safe side, but I am not sure whether it is necessary.

A method to load data after a trained forest and start prediction mode
@josephmure
Copy link
Copy Markdown
Author

Hello @mnwright could you have a look please?

@josephmure
Copy link
Copy Markdown
Author

Hi @mnwright could you please review this?

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.

1 participant