saifhmb commited on
Commit
ad933ec
·
unverified ·
1 Parent(s): 2d20ec3

updated line 29: OneHotEncoder(sparse_output=False)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()