Closed henrifnk closed 2 months ago
By now, we have the $base_learner()
function for GraphLearner
, which gives access to the learner at the end of the Graph.
graph$base_learner()$model
graph$base_learner()$oob_error()
prediction$score(msr("oob_error"), learner = graph$base_learner())
If I construct a simple GraphLearner and train it like this
I am not able to call on the functions defined in the learner like
nor do I have the possibility to call on the modell in a unified syntax like
also the following does not work anymore because the learner inside the graph is not trained
you would have to call instead:
I'm asking this because it makes it hard to implement gerneric solutions for such workflows and it makes it impossible to call on the measure if you have a prediction:
Is there already a solution existing, which i am not aware of?