Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion report_generator/report_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def create_list(res_entry, props_list):

stages_splitter = {
'training': ['training', 'computation'],
'inference': ['prediction', 'transformation', 'search']
'inference': ['prediction', 'transformation', 'search', 'predict_proba']
}

for stage_key in stages_splitter.keys():
Expand Down
3 changes: 2 additions & 1 deletion sklearn_bench/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def main():
from sklearn.svm import SVC

X_train, X_test, y_train, y_test = bench.load_data(params)
y_train = np.asfortranarray(y_train).ravel()

if params.gamma is None:
params.gamma = 1.0 / X_train.shape[1]
Expand All @@ -46,7 +47,7 @@ def main():
def metric_call(x, y): return bench.log_loss(x, y)
clf_predict = clf.predict_proba
else:
state_predict = 'predict'
state_predict = 'prediction'
accuracy_type = 'accuracy[%]'
def metric_call(x, y): return bench.accuracy_score(x, y)
clf_predict = clf.predict
Expand Down