censored 0.3.0
New features
-
multi_predict()is now available for all prediction types forproportional_hazards()models with the"glmnet"engine, so newly also fortype = "time"andtype = "raw"(#277, #282). -
Random forests with the
"aorsf"engine can now predict survival time, i.e.,predict(type = "time")is now available (#308).
Breaking change
- The
survival_prob_*(),survival_time_*(), andhazard_*()helper functions now all take a parsnipmodel_fitobject as the main input, instead of an engine fit as was the case for some of them previously (#302).
Bug fixes
-
extract_fit_engine()now works properly for proportional hazards models fitted with the"glmnet"engine (#266). -
multi_predict(type = "survival")forproportional_hazards(engine = "glmnet")models: when used with a singlepenaltyvalue, this value is now included in the results. It was previously omitted (#267, #282). -
proportional_hazards(engine = "glmnet")models now don't pretend to be able to deal with sparse matrices when they are not (#291). -
Fixed a bug for
proportional_hazards(engine = "glmnet")where prediction didn't work for aworkflow()with a formula as the preprocessor (#264).