I am trying to automatically access the selected lambda (found via lambda search in the H2O Generalized Linear Regression Learner Regression node). It outputs in the H2O Model Port, however I am having trouble automatically accessing it through another node. I was hoping Model to Cell would work, but unfortunately that only outputs the port object: Generalized Linear Modeling.
Does anyone know how to automatically access the selected lambda (5.07E-4 pictured above in the regularization row)?
@victor_palacios - this seems like this should be available in a future enhancement.
The current node calculates a number that would be useful to have available for the automation within the workflow. What needs to be done to create a ticket to look into creating this enhancement?
@jichaohe@jichaohe@elliegreib@kevweath well actually there is a way to do this. One could employ a Python node and H2O.ai in the background to extract a buch of parameters and also the summary from the MOJO model file. Though admittedly not the most elegant way you could have the information in a file
Thank you, @mlauber71 ! I learned a few things from your solution here.
We are trying to avoid messing with Python for this project due to its users. For h2o Python API, I know the following 1-line code can export the lambda easily: