hanifekaptan commited on
Commit
14cc1a2
1 Parent(s): 7bf5fc3

Hesaplama hatası düzeltildi

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  # Author: Hanife Kaptan
2
- # Versions: python==3.11.2, xgboost==2.1.1, streamlit==1.36.0, scikit-learn==1.4.2, pandas==2.0.2
3
 
4
  import pandas as pd
5
  from sklearn.compose import ColumnTransformer
@@ -14,7 +14,7 @@ X = df.drop("lung_cancer", axis=1)
14
  y = df["lung_cancer"]
15
 
16
  preprocess = ColumnTransformer(
17
- transformers = [("cat", OneHotEncoder(), ["gender"]), ("num", (StandardScaler()), ["age"])]
18
  )
19
 
20
  my_model = XGBClassifier()
 
1
  # Author: Hanife Kaptan
2
+ # Versions: python==3.11.2, xgboost==2.1.1, streamlit==1.36.0, scikit-learn==1.4.2, pandas==2.2.3
3
 
4
  import pandas as pd
5
  from sklearn.compose import ColumnTransformer
 
14
  y = df["lung_cancer"]
15
 
16
  preprocess = ColumnTransformer(
17
+ transformers = [("cat", OneHotEncoder(), ["gender"]), ("num", (StandardScaler()), ["age"])], remainder = "passthrough"
18
  )
19
 
20
  my_model = XGBClassifier()