Numerical and categorical were switched
"numerical_indices = [0, 12] # age-num, and hours-per-week\n",
"categorical_indices = [1, 3, 5, 7] # workclass, education, marital-status, and relationship\n",
"\n",
- "p1 = make_pipeline(PositionalSelector(numerical_indices), \n",
+ "p1 = make_pipeline(PositionalSelector(categorical_indices), \n",
" StripString(), \n",
" SimpleOneHotEncoder())\n",
- "p2 = make_pipeline(PositionalSelector(categorical_indices), \n",
+ "p2 = make_pipeline(PositionalSelector(numerical_indices), \n",
" StandardScaler())\n",
"\n",
"pipeline = FeatureUnion([\n",
