fix: correct variable name cuisines_feature_df to cuisines_features_df in 4-Classification/3-Classifiers-2

Co-authored-by: leestott <2511341+leestott@users.noreply.github.com>
copilot/fix-typo-in-classifiers-2
copilot-swe-agent[bot] 7 months ago
parent 72c69b2adc
commit d2daa6d136

@ -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