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
> hai_knn_data_prepper(iris, Species~.)
RecipeInputs:role#variablesoutcome1predictor4Operations:Dummyvariablesfromrecipes::all_nominal_predictors()
Centeringandscalingforrecipes::all_numeric()
> hai_knn_data_prepper(iris, Species~.) %>% prep() %>% bake(iris)
# A tibble: 150 x 5Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies<dbl><dbl><dbl><dbl><fct>1-0.8981.02-1.34-1.31setosa2-1.14-0.132-1.34-1.31setosa3-1.380.327-1.39-1.31setosa4-1.500.0979-1.28-1.31setosa5-1.021.25-1.34-1.31setosa6-0.5351.93-1.17-1.05setosa7-1.500.786-1.34-1.18setosa8-1.020.786-1.28-1.31setosa9-1.74-0.361-1.34-1.31setosa10-1.140.0979-1.28-1.44setosa# ... with 140 more rows> hai_knn_data_prepper(Titanic, Survived~.) %>% prep() %>% bake(Titanic)
# A tibble: 32 x 10nSurvivedClass_X1stClass_X2ndClass_X3rdClass_CrewSex_FemaleSex_Male<dbl><fct><dbl><dbl><dbl><dbl><dbl><dbl>1-0.506No1.70-0.568-0.568-0.568-0.9840.9842-0.506No-0.5681.70-0.568-0.568-0.9840.9843-0.248No-0.568-0.5681.70-0.568-0.9840.9844-0.506No-0.568-0.568-0.5681.70-0.9840.9845-0.506No1.70-0.568-0.568-0.5680.984-0.9846-0.506No-0.5681.70-0.568-0.5680.984-0.9847-0.381No-0.568-0.5681.70-0.5680.984-0.9848-0.506No-0.568-0.568-0.5681.700.984-0.98490.362No1.70-0.568-0.568-0.568-0.9840.984100.627No-0.5681.70-0.568-0.568-0.9840.984# ... with 22 more rows, and 2 more variables: Age_Adult <dbl>, Age_Child <dbl>
No description provided.
The text was updated successfully, but these errors were encountered: