LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
learn-grad Namespace Reference

Functions

def read_data

Variables

tuple scaler = preprocessing.StandardScaler()
tuple grads = scaler.transform(grads)
tuple grads2 = scaler.transform(grads2)
 Y = grads
tuple test_svm = svm.SVC(kernel='rbf', C=20, gamma=0.15, probability=True)
tuple num_stab = sum(1 for s in scores if s[1] == 1)
list missed_stab_arr = [s[0] for t, s, in zip(Y, scores) if s[1]==1 and test_svm.predict(t) != s[1]]
tuple missed_stab = len(missed_stab_arr)
tuple ave_score = sum(missed_stab_arr)
tuple max_score = max(missed_stab_arr)
tuple ave_good_score = sum(missed_stab_arr)
tuple max_good_score = max(missed_stab_arr)
tuple num_unstab = sum(1 for s in scores if s[1] == 0)
tuple missed_unstab = sum(1 for t, s in zip(Y, scores) if s[1] == 0 and test_svm.predict(t) != s[1])

Function Documentation

def learn-grad.read_data (   gradname,
  scorename 
)

Definition at line 7 of file learn-grad.py.

Variable Documentation

tuple learn-grad.ave_good_score = sum(missed_stab_arr)

Definition at line 55 of file learn-grad.py.

tuple learn-grad.ave_score = sum(missed_stab_arr)

Definition at line 48 of file learn-grad.py.

tuple learn-grad.grads = scaler.transform(grads)

Definition at line 29 of file learn-grad.py.

tuple learn-grad.grads2 = scaler.transform(grads2)

Definition at line 30 of file learn-grad.py.

tuple learn-grad.max_good_score = max(missed_stab_arr)

Definition at line 56 of file learn-grad.py.

tuple learn-grad.max_score = max(missed_stab_arr)

Definition at line 49 of file learn-grad.py.

tuple learn-grad.missed_stab = len(missed_stab_arr)

Definition at line 47 of file learn-grad.py.

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]]

Definition at line 43 of file learn-grad.py.

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])

Definition at line 64 of file learn-grad.py.

tuple learn-grad.num_stab = sum(1 for s in scores if s[1] == 1)

Definition at line 42 of file learn-grad.py.

tuple learn-grad.num_unstab = sum(1 for s in scores if s[1] == 0)

Definition at line 63 of file learn-grad.py.

tuple learn-grad.scaler = preprocessing.StandardScaler()

Definition at line 27 of file learn-grad.py.

tuple learn-grad.test_svm = svm.SVC(kernel='rbf', C=20, gamma=0.15, probability=True)

Definition at line 35 of file learn-grad.py.

learn-grad.Y = grads

Definition at line 32 of file learn-grad.py.