File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments