saifhmb
commited on
updated line 29: OneHotEncoder(sparse_output=False)
Browse files
app.py
CHANGED
@@ -26,9 +26,9 @@ X = dataset.iloc[:, :-1].values
|
|
26 |
y = dataset.iloc[:, -1].values
|
27 |
|
28 |
# Encoding the Independent Variables
|
29 |
-
ct = ColumnTransformer(transformers = [('encoder', OneHotEncoder(), [2, 3, 6, 7])], remainder = 'passthrough')
|
30 |
X = np.array(ct.fit_transform(X))
|
31 |
-
X= X.astype('int')
|
32 |
|
33 |
# Encoding the Dependent Variable
|
34 |
le = LabelEncoder()
|
|
|
26 |
y = dataset.iloc[:, -1].values
|
27 |
|
28 |
# Encoding the Independent Variables
|
29 |
+
ct = ColumnTransformer(transformers = [('encoder', OneHotEncoder(sparse_output=False), [2, 3, 6, 7])], remainder = 'passthrough')
|
30 |
X = np.array(ct.fit_transform(X))
|
31 |
+
#X= X.astype('int')
|
32 |
|
33 |
# Encoding the Dependent Variable
|
34 |
le = LabelEncoder()
|