|
87 | 87 | "# Define the label\n", |
88 | 88 | "label = # YOUR CODE HERE\n", |
89 | 89 | "\n", |
90 | | - "# Define numerical features to apply IQR clipping\n", |
91 | | - "numerical_features = # YOUR CODE HERE\n", |
92 | | - "\n", |
93 | | - "# Define ordinal features to encode\n", |
94 | | - "ordinal_features = # YOUR CODE HERE\n", |
95 | | - "\n", |
96 | | - "# Define ordinal categories in order\n", |
97 | | - "education_categories = # YOUR CODE HERE\n", |
98 | | - "income_categories = # YOUR CODE HERE\n", |
99 | | - "\n", |
100 | | - "# Define features for one-hot encoding\n", |
101 | | - "nominal_features = # YOUR CODE HERE\n", |
| 90 | + "# Define numerical, ordinal and nominal features\n", |
| 91 | + "# YOUR CODE HERE\n", |
102 | 92 | "\n", |
103 | 93 | "# Complete feature list\n", |
104 | 94 | "features = # YOUR CODE HERE" |
|
214 | 204 | "metadata": {}, |
215 | 205 | "outputs": [], |
216 | 206 | "source": [ |
217 | | - "# YOUR CODE HERE: create and fit OneHotEncoder, transform features, and concatenate back to dataframes\n", |
218 | | - "# Remember to set the index of encoded_features_df to match training_df.index and testing_df.index\n", |
219 | | - "# Don't forget to reset_index(drop=True) after concatenation" |
| 207 | + "# YOUR CODE HERE: create and fit OneHotEncoder, transform features, and concatenate back to dataframes" |
220 | 208 | ] |
221 | 209 | }, |
222 | 210 | { |
|
0 commit comments