Skip to content

Instantly share code, notes, and snippets.

View arjay55's full-sized avatar

Arjeus Guevarra arjay55

View GitHub Profile
@arjay55
arjay55 / discount_loss.py
Created August 24, 2019 14:43
discount_loss
ct = 0
for _ in test_data:
ct += 1
powcoeffs = np.arange(ct)
loss_base = np.full(ct,0.9)
loss_array = np.power(loss_base, powcoeffs)
@arjay55
arjay55 / target_validation.py
Created August 25, 2019 06:55
target_validation
_,optvalues,resobj=load('hyperparam_best.joblib')
outparams=linkopt(['input_layer','hidden_1','navpu_infl','uni_reg','dropout_rate','hidden_reg'],optvalues)
acc_sigma=np.min(resobj.func_vals) #target validation error