train.py
def update_from_result(name, test, result):
        '''Put results into test/train structure'''
        test.y_true = result.y_true
        test.y_score = result.y_score
        test.y_aff = result.y_aff
        test.y_predaff = result.y_predaff
        test.rmsd_true = result.rmsd_true
        test.rmsd_pred = result.rmsd_pred
        if result.auc is not None:
            print("%s AUC: %f" % (name,result.auc))
            test.aucs.append(result.auc)
        if result.loss:
            print("%s loss: %f" % (name,result.loss))
            test.losses.append(result.loss)
        if result.rmsd is not None:
            print("%s RMSD: %f" % (name,result.rmsd))
            test.rmsds.append(result.rmsd)
        if result.rmsd_rmse is not None:
            print("%s rmsd_rmse: %f" % (name,result.rmsd_rmse))
            test.rmsd_rmses.append(result.rmsd_rmse)
Put results into test/train structure
Put results into test/train structure
Put results into test / train structure
def update_from_result(name, test, result):
        test.y_true = result.y_true
        test.y_score = result.y_score
        test.y_aff = result.y_aff
        test.y_predaff = result.y_predaff
        test.rmsd_true = result.rmsd_true
        test.rmsd_pred = result.rmsd_pred
        if result.auc is not None:
            print("%s AUC: %f" % (name,result.auc))
            test.aucs.append(result.auc)
        if result.loss:
            print("%s loss: %f" % (name,result.loss))
            test.losses.append(result.loss)
        if result.rmsd is not None:
            print("%s RMSD: %f" % (name,result.rmsd))
            test.rmsds.append(result.rmsd)
        if result.rmsd_rmse is not None:
            print("%s rmsd_rmse: %f" % (name,result.rmsd_rmse))
            test.rmsd_rmses.append(result.rmsd_rmse)
def update_from_result ( name , test , result ) : test . y_true = result . y_true test . y_score = result . y_score test . y_aff = result . y_aff test . y_predaff = result . y_predaff test . rmsd_true = result . rmsd_true test . rmsd_pred = result . rmsd_pred if result . auc is not None : print ( "%s AUC: %f" % ( name , result . auc ) ) test . aucs . append ( result . auc ) if result . loss : print ( "%s loss: %f" % ( name , result . loss ) ) test . losses . append ( result . loss ) if result . rmsd is not None : print ( "%s RMSD: %f" % ( name , result . rmsd ) ) test . rmsds . append ( result . rmsd ) if result . rmsd_rmse is not None : print ( "%s rmsd_rmse: %f" % ( name , result . rmsd_rmse ) ) test . rmsd_rmses . append ( result . rmsd_rmse )
Put results into test/train structure
Put results into test / train structure
'''Put results into test/train structure'''
name
test
result