Superlearn check weights
miaow27 opened this issue · comments
@pzivich , Is there anyway to know the final weights for superleaner candidate?
In R package tmle
, you can simply call tmle$Qinit$coef
or tmle$g$coef
to know the actual weights for Q and g model.
Thanks!
Yes, calling SuperLearner.summary()
returns the weights given to each learner.
If this is related to #167 then things aren't as straightforward. summary()
is not called because of the volume of output. The cross-fit procedure means that there are multiple SL fit to each partition of the data (a min of 2 for single cross-fit). A number of different partitions are done by the cross-fitting procedure. As the recommendation is like 100 different partitions, the weights for each partition are not output (printed or saved).
I will consider how that could be added to things like SingleCrossfitTMLE