You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to transform a new data as per pipeline trained on a given task. For example:-
ames=mlr3data::ames_housingames1=ames[1:2000,]
ames2=ames[2001:nrow(ames),-c('Sale_Price')]
to_remove= c("Lot_Area_m2", "Condition_3", "Misc_Feature_2")
tsk_ames= as_task_regr(ames1, target="Sale_Price", id="ames")
# remove problematic featurestsk_ames$select(setdiff(tsk_ames$feature_names, to_remove))
po_encod= po("encode")
# to get the transformed datapo_encod$train(list(tsk_ames))[[1]]$data()
# this will through an error stating only tasks objects are allowed as input.po_encod$predict(ames2)
The text was updated successfully, but these errors were encountered:
Is there a way to transform a new data as per pipeline trained on a given task. For example:-
The text was updated successfully, but these errors were encountered: