Closed rachaelvp closed 3 years ago
@Larsvanderlaan test-formula is passing, but just to be sure, could you please check that I updated formula_hal
correctly?
Hi Rachael, this looks fantastic! I made some minor changes (correcting a bug with offset that I caused at some point).
formula_hal
,fit_hal
andpredict
; and addedfit_control
andformula_control
lists for arguments. Moved much of the text to details sections, and shortened the argument descriptions.summary
to support higher-order HAL fit interpretations.fit_hal
for missingness and dimensionality correspondence betweenX
,Y
, andX_unpenalized
. These checks lead to quickly-produced errors, opposed to enumerating the basis list and then lettingglmnet
error on something trivial like this.fit_hal
, soformula
is now provided directly tofit_hal
andformula_hal
is run withinfit_hal
. Due to these changes, it no longer made sense forformula_hal
to acceptdata
, so it now takes as inputX
. Also, theformula_fit_hal
function was removed as it is no longer needed.NOTE: test-sl will fail due to the updated argument formatting in
fit_hal