Skip to content

Commit e952567

Browse files
Fix attempt udacity#1 train_model.py
1 parent 01e6e37 commit e952567

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.ipynb_checkpoints/train_model-checkpoint.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
for slicevalue in sorted(test[col].unique()):
7979
count = test[test[col] == slicevalue].shape[0]
8080
p, r, fb = performance_on_categorical_slice(
81-
data = test,
82-
column_name = col,
83-
slice_value = slice_value,
84-
cat_features = cat_features,
85-
label = "salary",
86-
encoder = encoder,
87-
lb = lb,
88-
model = model,
81+
test,
82+
col,
83+
slice_value,
84+
cat_features,
85+
'salary',
86+
encoder,
87+
lb,
88+
model,
8989
# use test, col and slicevalue as part of the input
9090
)
9191
with open("slice_output.txt", "a") as f:

train_model.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
for slicevalue in sorted(test[col].unique()):
7979
count = test[test[col] == slicevalue].shape[0]
8080
p, r, fb = performance_on_categorical_slice(
81-
data = test,
82-
column_name = col,
83-
slice_value = slice_value,
84-
cat_features = cat_features,
85-
label = "salary",
86-
encoder = encoder,
87-
lb = lb,
88-
model = model,
81+
test,
82+
col,
83+
slice_value,
84+
cat_features,
85+
'salary',
86+
encoder,
87+
lb,
88+
model,
8989
# use test, col and slicevalue as part of the input
9090
)
9191
with open("slice_output.txt", "a") as f:

0 commit comments

Comments
 (0)