LILAC
|
Go to the source code of this file.
Namespaces | |
namespace | learn-grad |
Functions | |
def | learn-grad.read_data |
Variables | |
tuple | learn-grad.scaler = preprocessing.StandardScaler() |
tuple | learn-grad.grads = scaler.transform(grads) |
tuple | learn-grad.grads2 = scaler.transform(grads2) |
learn-grad.Y = grads | |
tuple | learn-grad.test_svm = svm.SVC(kernel='rbf', C=20, gamma=0.15, probability=True) |
tuple | learn-grad.num_stab = sum(1 for s in scores if s[1] == 1) |
list | learn-grad.missed_stab_arr = [s[0] for t, s, in zip(Y, scores) if s[1]==1 and test_svm.predict(t) != s[1]] |
tuple | learn-grad.missed_stab = len(missed_stab_arr) |
tuple | learn-grad.ave_score = sum(missed_stab_arr) |
tuple | learn-grad.max_score = max(missed_stab_arr) |
tuple | learn-grad.ave_good_score = sum(missed_stab_arr) |
tuple | learn-grad.max_good_score = max(missed_stab_arr) |
tuple | learn-grad.num_unstab = sum(1 for s in scores if s[1] == 0) |
tuple | learn-grad.missed_unstab = sum(1 for t, s in zip(Y, scores) if s[1] == 0 and test_svm.predict(t) != s[1]) |