Merge pull request #933 from microsoft/copilot/fix-typo-in-classifiers-2

Fix variable name typo: cuisines_feature_df → cuisines_features_df in 4-Classification/3-Classifiers-2
pull/936/head
Lee Stott 7 months ago committed by GitHub
commit eac3f0395b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,7 +53,7 @@ Following this path, we should start by importing some libraries to use.
1. Split your training and test data: 1. Split your training and test data:
```python ```python
X_train, X_test, y_train, y_test = train_test_split(cuisines_feature_df, cuisines_label_df, test_size=0.3) X_train, X_test, y_train, y_test = train_test_split(cuisines_features_df, cuisines_label_df, test_size=0.3)
``` ```
## Linear SVC classifier ## Linear SVC classifier

@ -116,8 +116,8 @@
} }
], ],
"source": [ "source": [
"cuisines_feature_df = cuisines_df.drop(['Unnamed: 0', 'cuisine'], axis=1)\n", "cuisines_features_df = cuisines_df.drop(['Unnamed: 0', 'cuisine'], axis=1)\n",
"cuisines_feature_df.head()" "cuisines_features_df.head()"
] ]
} }
], ],

@ -116,8 +116,8 @@
} }
], ],
"source": [ "source": [
"cuisines_feature_df = cuisines_df.drop(['Unnamed: 0', 'cuisine'], axis=1)\n", "cuisines_features_df = cuisines_df.drop(['Unnamed: 0', 'cuisine'], axis=1)\n",
"cuisines_feature_df.head()" "cuisines_features_df.head()"
] ]
}, },
{ {
@ -148,7 +148,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"X_train, X_test, y_train, y_test = train_test_split(cuisines_feature_df, cuisines_label_df, test_size=0.3)" "X_train, X_test, y_train, y_test = train_test_split(cuisines_features_df, cuisines_label_df, test_size=0.3)"
] ]
}, },
{ {

Loading…
Cancel
Save