提交 2a4d6f3f 作者: 朱学凯

add some change

上级 a43ff66c
import numpy as np
import re
def eval_result(pred, label):
pred = np.array(pred)
label = np.array(label)
num = len(pred)
diff = pred - label
mse = np.sum(np.power(diff, 2)) / num
rmse = np.sqrt(mse)
pearson_co = np.corrcoef(pred, label)
return rmse, pearson_co
def eval(pred_path, label_path):
with open(pred_path, 'r') as f:
pred = f.readlines()
pred = [float(i.strip()) for i in pred]
with open(label_path, 'r') as f:
label = f.readlines()
label = [float(i.strip()) for i in label]
remse, r_mat = eval_result(pred, label)
r = r_mat[0, 1]
save_path = pred_path.replace('test.txt', 'eval_results')
with open(save_path, 'w') as f:
f.write('RMSE : {} ; Pearson Correlation Coefficient : {}'.format(remse, r))
print('RMSE : {} ; Pearson Correlation Coefficient : {}'.format(remse, r))
if __name__ == '__main__':
with open('pre_test.sh', 'r') as f:
pred_dir = f.readline()
pred_dir = pred_dir.split()[5].split('/')[-1]
pred_result = './predict/{}/test.txt'.format(pred_dir)
test_label_path = './data/test_ic50'
eval(pred_result, test_label_path)
CUDA_VISIBLE_DEVICES=1 python run_interaction.py --task=test --output=./predict/lr-1e-5-batch-32-e-10-layer3-0417-add-type-ids-and-mask-step-24711 --config=./config/config_layer_3.json --init=./model/lr-1e-5-batch-32-e-10-layer3-0417-add-type-ids-and-mask/epoch-2-step-24711-loss-0.9765299144620636.pth --do_eval=True CUDA_VISIBLE_DEVICES=1 python run_interaction.py --task=test --b=64 --output=./predict/lr-1e-5-batch-32-e-10-layer6-0420-step-74133 --config=./config/config_layer_6.json --init=./model/lr-1e-5-batch-32-e-10-layer6-0420/epoch-8-step-74133-loss-0.8989318833651185.pth --do_eval=True
\ No newline at end of file \ No newline at end of file
from argparse import ArgumentParser
from dataset import Data_Encoder
import torch
from torch.utils.data import DataLoader
from configuration_bert import BertConfig
from modeling_bert import BertAffinityModel
from torch.utils.tensorboard import SummaryWriter
import os
from tqdm import tqdm
torch.set_default_tensor_type(torch.DoubleTensor)
def get_task(task_name):
if task_name.lower() == 'train':
df_train = {"sps": './data/train_sps',
"smile": './data/train_smile',
"affinity": './data/train_ic50',
}
tokenizer_config = {"vocab_file": './config/vocab.txt',
"vocab_pair": './config/drug_codes_chembl.txt',
"begin_id": '[CLS]',
"separate_id": "[SEP]",
"max_len": 256
}
return df_train, tokenizer_config
elif task_name.lower() == 'test':
df_test = {"sps": './data/test_sps',
"smile": './data/test_smile',
"affinity": './data/test_ic50',
}
tokenizer_config = {"vocab_file": './config/vocab.txt',
"vocab_pair": './config/drug_codes_chembl.txt',
"begin_id": '[CLS]',
"separate_id": "[SEP]",
"max_len": 256
}
return df_test, tokenizer_config
def train(args, model, dataset):
data_loder_para = {'batch_size': args.batch_size,
'shuffle': True,
'num_workers': args.workers,
}
data_generator = DataLoader(dataset, **data_loder_para)
model.train()
opt = torch.optim.Adam(model.parameters(), lr=args.lr)
loss_fct = torch.nn.MSELoss()
writer = SummaryWriter('./log/' + args.savedir)
num_step = args.epochs * len(data_generator)
step = 0
save_step = num_step // 10
# detect GPU
if torch.cuda.is_available():
model.cuda()
# print(model)
print('epoch num : {}'.format(args.epochs))
print('step num : {}'.format(num_step))
print('batch size : {}'.format(args.batch_size))
print('learning rate : {}'.format(args.lr))
print('begin training')
# training
for epoch in range(args.epochs):
for i, (input, token_type_ids, input_mask, affinity) in enumerate(data_generator):
# use cuda
# input model
if torch.cuda.is_available():
pred_affinity = model(input_ids=input.cuda(), token_type_ids=token_type_ids.cuda(), attention_mask=input_mask.cuda())
loss = loss_fct(pred_affinity, affinity.cuda().unsqueeze(-1))
else:
pred_affinity = model(input_ids=input, token_type_ids=token_type_ids, attention_mask=input_mask)
loss = loss_fct(pred_affinity, affinity.unsqueeze(-1))
step += 1
writer.add_scalar('loss', loss, global_step=step)
# Update gradient
opt.zero_grad()
loss.backward()
opt.step()
# if (i % 100 == 0):
print('Training at Epoch ' + str(epoch + 1) + ' step ' + str(step) + ' with loss ' + str(
loss.cpu().detach().numpy()))
# save
if epoch >= 1 and step % save_step == 0:
save_path = './model/' + args.savedir + '/'
if not os.path.exists(save_path):
os.mkdir(save_path)
torch.save(model.state_dict(), save_path + 'epoch-{}-step-{}-loss-{}.pth'.format(epoch, step, loss))
print('training over')
writer.close()
def test(args, model, dataset):
data_loder_para = {'batch_size': args.batch_size,
'shuffle': False,
'num_workers': args.workers,
}
data_generator = DataLoader(dataset, **data_loder_para)
with torch.no_grad():
if torch.cuda.is_available():
model.load_state_dict(torch.load(args.init), strict=True)
else:
model.load_state_dict(torch.load(args.init, map_location=torch.device('cpu')), strict=True)
model.eval()
if not os.path.exists(args.output):
os.mkdir(args.output)
result = args.output + '/' + '{}.txt'.format(args.task)
print('begin predicting')
with open(result, 'w') as f:
for i, (input, token_type_ids, input_mask, affinity) in enumerate(tqdm(data_generator)):
if torch.cuda.is_available():
model.cuda()
pred_affinity = model(input_ids=input.cuda(), token_type_ids=token_type_ids.cuda(),
attention_mask=input_mask.cuda())
else:
pred_affinity = model(input_ids=input, token_type_ids=token_type_ids, attention_mask=input_mask)
pred_affinity = pred_affinity.cpu().numpy()
for res in range(args.batch_size):
pred = pred_affinity[res, :][0]
f.write(str(pred) + '\n')
if args.do_eval:
os.system('python eval.py')
def main(args):
# load data
data_file, tokenizer_config = get_task(args.task)
dataset = Data_Encoder(data_file, tokenizer_config)
# creat model
print('------------------creat model---------------------------')
config = BertConfig.from_pretrained(args.config)
model = BertAffinityModel(config)
print('model name : BertAffinity')
print('task name : {}'.format(args.task))
if args.task == 'train':
train(args, model, dataset)
elif args.task in ['test']:
test(args, model, dataset)
if __name__ == '__main__':
# get parameter
parser = ArgumentParser(description='BertAffinity')
parser.add_argument('-b', '--batch-size', default=8, type=int,
metavar='N',
help='mini-batch size (default: 16), this is the total '
'batch size of all GPUs on the current node when '
'using Data Parallel or Distributed Data Parallel')
parser.add_argument('-j', '--workers', default=0, type=int, metavar='N',
help='number of data loading workers (default: 0)')
parser.add_argument('--epochs', default=50, type=int, metavar='N',
help='number of total epochs to run')
parser.add_argument('--task', choices=['train', 'test', 'channel', 'ER', 'GPCR', 'kinase'],
default='train', type=str, metavar='TASK',
help='Task name. Could be train, test, channel, ER, GPCR, kinase.')
parser.add_argument('--lr', '--learning-rate', default=1e-5, type=float,
metavar='LR', help='initial learning rate', dest='lr')
parser.add_argument('--config', default='./config/config.json', type=str, help='model config file path')
# parser.add_argument('--log', default='training_log', type=str, help='training log')
parser.add_argument('--savedir', default='train', type=str, help='log and model save path')
# parser.add_argument('--device', default='0', type=str, help='name of GPU')
parser.add_argument('--init', default='model', type=str, help='init checkpoint')
parser.add_argument('--output', default='predict', type=str, help='result save path')
# parser.add_argument('--shuffle', default=True, type=str, help='shuffle data')
parser.add_argument('--do_eval', default=False, type=bool, help='do eval')
args = parser.parse_args()
# local test
# args.task = 'train'
# args.savedir = 'local_test_train'
# args.epochs = 10
# args.lr = 1e-5
# args.config = './config/config_layer_3.json'
# args.task = 'test'
# args.init = './model/lr-1e-5-batch-32-e-10-layer3-0417-add-type-ids-and-mask/epoch-9-step-82370-loss-0.8841055645024439.pth'
# args.output = './predict/test'
# args.config = './config/config_layer_3.json'
main(args)
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -32,7 +32,7 @@ def eval(pred_path, label_path): ...@@ -32,7 +32,7 @@ def eval(pred_path, label_path):
if __name__ == '__main__': if __name__ == '__main__':
with open('pre_test.sh', 'r') as f: with open('pre_test.sh', 'r') as f:
pred_dir = f.readline() pred_dir = f.readline()
pred_dir = pred_dir.split()[4].split('/')[-1] pred_dir = pred_dir.split()[5].split('/')[-1]
pred_result = './predict/{}/test.txt'.format(pred_dir) pred_result = './predict/{}/test.txt'.format(pred_dir)
test_label_path = './data/test_ic50' test_label_path = './data/test_ic50'
eval(pred_result, test_label_path) eval(pred_result, test_label_path)
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
CUDA_VISIBLE_DEVICES=1 python run_interaction.py --task=test --output=./predict/lr-1e-5-batch-32-e-10-layer3-0417-add-type-ids-and-mask-step-24711 --config=./config/config_layer_3.json --init=./model/lr-1e-5-batch-32-e-10-layer3-0417-add-type-ids-and-mask/epoch-2-step-24711-loss-0.9765299144620636.pth --do_eval=True CUDA_VISIBLE_DEVICES=1 python run_interaction.py --task=test --b=64 --output=./predict/lr-1e-5-batch-32-e-10-layer6-0420-step-74133 --config=./config/config_layer_6.json --init=./model/lr-1e-5-batch-32-e-10-layer6-0420/epoch-8-step-74133-loss-0.8989318833651185.pth --do_eval=True
\ No newline at end of file \ No newline at end of file
5.762534806457919
5.573780158510393
5.813384270252212
5.9872575877362
5.928775026434888
6.12293720446846
5.91847313705387
6.171399782888749
5.95408368402313
5.808436107784162
6.463996097897956
6.371522001136868
6.186953493506902
6.452173325914865
5.573670585019379
5.759513964723675
5.56542222924835
5.849335027455934
5.2607422125287915
5.5679695100214195
5.254178072042028
6.041204128865117
5.901662706417659
6.111723256953005
6.37335400891564
6.758363418815303
5.8285944563613
5.918305296011942
5.575880895991527
5.661069184119911
5.857944015082797
5.614278974459829
7.4148908779067995
6.4784439190113865
6.189730766427279
6.456071703487959
7.4651934061948495
7.155878091580983
7.849497998268957
6.8058957639868884
5.831329447918061
7.351791410799773
6.332054340324368
6.242395883766115
6.65884502075653
6.651315877830756
6.961688811331598
6.205148923935222
6.295828007430554
6.59190542138544
6.681087488009998
6.156606504046566
6.416395748665963
6.904504086105193
6.333045438884606
6.914502254471426
7.112217805275425
5.656340735447591
5.87989092790043
6.950555795209359
5.726699070647806
6.24642087022806
6.78942280783262
6.537116003448963
7.140104053079736
7.091523280166963
6.999852256391803
6.860896883908745
7.885657673439403
6.478076002233695
7.399122995214732
6.836959921929395
7.4382308446819705
7.216673050547892
6.996931092096453
6.829568096429333
7.718288032553059
7.303155304349689
5.001590189977168
5.126670211185871
6.215570976388704
6.464864314123007
6.0888010532059615
6.086663826830956
5.810454806062837
5.659085305629577
6.639266232615676
6.643573623262846
6.167455340658585
5.160978658619097
5.870491655726206
6.128158467683995
5.408446210015974
6.745871625768472
5.929405367001648
5.929405367001648
6.220513983844402
5.475378341926286
5.887959265016474
5.474785425567673
5.631524553259258
5.905581572915172
5.826933884211751
6.398928530560401
6.052973929108238
6.145622076433287
5.738901098937597
5.843640488134355
6.160430497009939
6.223650038217971
5.531132765070686
5.613957721917217
5.805854902383093
5.259700026948459
5.851150411090667
6.010264429754274
6.193793407191236
7.071076321968549
6.352784059420843
6.883357795527746
6.106258569154195
6.124602367392603
6.594248428775842
6.020162757726467
6.800003532271791
5.893622276160102
6.464727438388043
6.353295297674528
6.353295297674528
6.441668716264467
5.882829669959852
6.14150484296186
5.6288574392766275
5.705169825953922
6.977251448280908
7.384191758796197
6.704685233591605
6.693400522138403
6.5487536910548245
6.411452438489986
6.4822973984289884
6.587367337275456
6.656776203828104
7.005841032006617
6.637253650371532
6.518320420608037
6.662824186692978
6.65021082689619
6.70854175260337
5.898011050642047
6.259920875958635
6.237607533333907
5.979698842455848
5.800513133579095
6.45685321758359
6.076822967153146
6.455098434635275
7.282611867441187
7.268029289477307
6.978873598388242
6.95432073600247
7.341815508827381
6.999406547030172
7.47699849374097
6.828662736265225
7.237245017256835
7.6818782000783195
7.753003548026111
7.590332133908123
7.151129201840294
7.494873857518492
7.390937301082521
7.691706002373494
7.5528960092924295
6.554649330740187
7.036949213856856
6.372306447210001
7.272462737127817
6.969925272586645
7.266125876302993
6.72082322185703
7.567850115004114
7.351668572315361
7.643446941716781
7.623577321086952
6.192625125192563
7.863490294630749
7.842437299358617
5.547572760213063
7.596440610683
7.09682514199764
6.648734908327975
7.96410123021972
7.66589721852981
7.657172880718782
7.7543657123960585
6.775274640347584
7.321866654002718
5.775368534642362
7.9144844105036976
7.855804401602604
7.543512842320973
7.692727082877615
7.81180690500779
7.786140157129012
7.742024744463437
7.690059008663434
7.181545317832475
7.33978009708715
7.660055243085028
7.2315863372216045
6.389038400839872
6.573284108891652
6.3735826850672055
5.851139734242136
6.6094434056454086
6.666934529606417
6.6972094267260545
7.199608793007819
7.819915437156064
7.9711147779824305
5.124697207176075
5.269859027965136
4.907068764109019
5.211463083211332
5.99257037732998
5.918891934776597
5.926887347197911
5.479789417069257
5.682912884194217
5.743370340017647
5.243006012653857
5.54757705418504
5.666045594883503
5.196983400543964
5.07089515329109
4.8468028638582865
5.497535994884147
5.626120424111859
4.824700671408472
5.291247921515833
4.9823097777925
5.562213878089248
5.989330858116448
5.487409024545107
4.491439611012472
5.263143279809369
6.0416550050627915
5.45434178118695
6.016529005961404
6.040948629248659
6.13242225012906
6.339014357617733
5.825462966688474
5.699166259076676
6.500527407661299
6.35074455484588
5.545566675146933
5.9765219260444535
5.681373038541096
6.044391410855748
5.858221320641983
6.088489767451609
6.210619707380056
5.323484841711609
5.421521591311775
5.284936095223049
5.424328614900473
5.087023072723721
6.167530957388605
4.675170891789184
5.483055952786511
5.293831802550588
5.629984718930393
5.503457570157913
5.554079492663244
5.867369902094535
5.386454829711737
5.433634083307015
5.666470937260292
5.9188050955774605
5.461063674913925
5.746134592930455
6.038044665857639
5.477429080275823
4.933757108412464
5.174744149489407
6.763717575126397
6.378879487147441
5.278796377047125
6.227150090540877
6.372774726094748
7.231049975236845
7.106810398100017
6.611117164845009
5.714301382634826
6.892805199861941
5.988198891378208
6.255269099051843
7.629232455961638
6.713912611248555
6.887889931405761
6.620685389141656
7.110522810629112
8.06087118862682
8.06087118862682
8.18153869699096
8.020772216416356
3.777225445717378
5.362587094579317
6.205482777990625
4.8464590059045864
5.8360965318797
3.7407354291623935
4.546291548616466
4.045839695661568
4.1100720097536945
3.949344850812445
4.557449896430011
4.250976446843928
6.01531759219478
6.736208890061659
5.6834382608311165
6.742447558724268
6.436370889438991
6.217591084259838
6.466214928982442
6.661610969585872
7.199020832218466
7.482095323908927
8.258584717617676
7.783476569492151
7.358864785200244
7.397986867202706
8.194307944933179
8.244735491903004
8.623068560813744
7.6965869777405915
7.635770710462715
6.561289576360063
7.753811482844403
7.181792352434875
7.309914857723161
7.309914857723161
7.826547566500569
7.409227647318137
6.554756203444343
7.529483032523568
7.051654788386368
6.5038813029135465
7.079233144731991
6.105699200628735
6.791240882897954
6.043042844871761
5.981842422947062
6.655920799440742
6.686826992212099
7.30518706029699
6.170571991291745
6.508493728017635
6.133175038285994
6.106149561343686
5.515059401588288
6.475085468067424
6.136712201950635
6.401504474023936
6.174813400443524
6.353954222875833
6.773350734423754
6.27171341026917
6.87337574059754
6.238485962176794
6.1379636670724
6.84823494181829
7.075578866173876
7.2262452993430175
7.330002587650186
7.013544083753571
7.246296729706623
7.016344090924141
6.845433272547064
7.160238844166117
7.625325055850205
7.625325055850205
4.438030528449246
5.097529854008785
5.3315260334681405
3.8011920642086547
3.4766453502706893
4.7870338165158675
4.584801175939456
6.117972031530412
6.403360669092728
5.8940767964355025
5.639527348238486
6.348822272594173
6.431777889628693
7.954480890257875
8.020272200978475
7.486856728944945
7.94418226043255
7.904304005219869
8.122575893281281
8.051990443503797
7.970810020828852
6.554601152376588
5.319372547245445
6.4645902830659345
6.054446980491537
6.836603303676312
5.9194612319004865
6.227374851833042
6.083143307434428
6.547664745352513
6.377025126388423
6.406761505278814
4.800006070960402
6.858443053029237
6.285776028147718
6.391078239536346
5.33137794404763
6.430098186808602
5.639298719519294
6.712342750542618
4.9673286280454345
7.059918739801272
6.894333730777089
7.508427858254176
5.932945716558035
6.039273746435068
6.102605293489213
6.400777989141853
5.8053786251562345
6.332271701408513
6.849480834583145
6.9605607191003065
6.774210171302608
7.080079952823057
7.051276619402688
6.163952069323264
6.712342750542618
7.446157710292323
5.0477444512691
6.766169612109559
6.796446368504123
7.351292110720484
5.419881340863068
8.007484216418831
6.805411012698676
5.074708451495854
4.31604733685638
4.740807691503997
5.233770910244964
5.00434403284314
5.150455005491506
4.639992265159368
5.029656921063691
5.042602555778169
5.800781563305412
7.2114556458087105
7.3135688230314235
5.879006551622405
6.940568308361087
7.862631243502356
7.744402424983045
4.687884037816916
4.683198725608802
6.7048100186748245
5.261236582500361
6.045818240229769
6.076920275669827
5.8613799775156945
6.774350479391203
6.094941632513826
6.223980497888062
7.17869684186158
6.509763832211574
5.774789788237194
6.7599538486259405
7.650917687896622
4.075785417766361
7.568489561179442
7.2506923059057975
7.414076750730464
6.725027046156493
7.260389284013971
6.873868270141784
5.737185738795757
6.624087611155487
7.436233810493922
6.6827116880649475
6.953156835768262
6.872562883857016
7.919241110142484
7.609903351620292
7.825812544280096
7.6905878132284675
7.193667155370745
7.48089453612225
7.649134218038475
7.90507939985506
7.819530277114695
6.437789102128791
7.216912050626797
6.934370949632109
7.703980542061789
8.03800283413586
7.821846881717352
7.734694366105239
6.250962969926652
6.6322605186820125
6.726238304664629
6.598557301790779
6.4874963250986015
6.247556170489164
6.3563121718564615
6.451113307873932
6.41428027808585
5.8786531701324
6.565619273339747
6.872474281107022
7.100107822324173
6.6138019052039345
6.792357325894399
6.27737348135612
6.218323868632692
6.5318350528296305
6.819618706405551
6.748993329491361
7.165729635633975
6.523782452087766
7.659369252873224
5.732652877314334
5.520968985932351
6.633687441408002
7.36166643645476
5.682647568308804
6.730444852866768
7.899542170859002
7.3370235586419215
7.753945033462758
7.909451024388994
7.852833399435365
7.5226501658082645
7.807150872603287
7.513242675872636
7.391599891507994
8.751940545396403
8.57224822484322
8.113146163021398
7.36006799635129
5.9399655152773905
6.190323406422532
6.452958500651653
6.050488276557504
6.736637837632694
6.950428272287048
6.074030747492814
8.255630882092971
6.850350892856428
6.372770369397739
7.015501138843865
7.721923072303791
7.8244838182396785
7.824680255623857
7.307064720201394
6.421838073505992
6.680954872529983
7.699111179485451
7.38638959052231
6.734530903609389
8.164507519842381
6.6051493381411355
8.0252135065555
5.858573658309185
7.774639358965441
7.7253592148923955
5.755919113678444
6.29347659797229
7.43408681481417
6.3960420786982235
5.767716681457475
6.327714393694091
6.56443656191129
5.96875867920708
6.343355282952265
6.132404199257655
6.6781453362841
7.894579314200985
7.7438406776388335
7.8045157985678095
6.0955398780763375
7.7016467176760575
7.217975850129716
7.781210775438177
7.02497910329824
6.941519843509682
6.778872655333369
7.022271799504922
6.404062419325397
6.00936623008781
5.77602110787044
7.603600608575584
6.299604726221473
6.526926107828646
7.687857593170488
6.183915178563992
6.404013714458809
6.720221402918298
6.527223647084579
6.6083158956728125
7.198194760908669
6.712522835208803
5.891845604390958
6.509829275512301
5.893264614574825
7.101692229047894
6.4702579066436545
7.140513026276175
5.885055968695836
5.720299345410856
6.46779375910585
6.677591864882648
6.420035664859461
5.856534603323719
6.555655252901071
6.5138456010273655
6.144241694463929
5.95031724747043
6.341928355407192
6.281427211543463
5.717107095767395
6.009247832630599
5.872190488538358
6.064657734791349
5.867314154646412
6.156362279649802
6.1415411842381245
6.384735523162679
6.322566412827814
6.487100677291941
6.768440005642953
6.625617271357216
6.008971514309863
5.819761022688067
6.199206068974652
5.897736476769843
5.627273646679578
5.954696792700831
6.120906829584704
6.055916927936562
5.841669688554509
5.797449322266034
6.028807843012142
4.902142370020622
5.094570192633485
4.992608904920662
8.886408860003126
6.994707250943602
6.833184993862056
6.97150016016528
6.361310085862677
6.85659958069007
7.04678778732542
6.508827270451839
6.7517382195975255
6.34476065578605
6.7628736070586655
6.5913949051715734
6.726851075349176
6.310482169554174
6.026990480804801
6.218945897084636
6.440276312288051
6.415784444649478
7.099572640825133
6.479107120042248
6.158272635534347
6.378734814826252
5.93446329388266
6.900192091267111
6.537693910406448
6.759462655263712
6.831895405194779
6.458050575629951
6.623333288650227
6.550571455142572
6.659931873512242
6.907732287476335
7.266475267472071
6.982171477207518
7.122342039363305
7.332748556891002
7.047998482861237
6.8660265510828475
6.605167681298425
6.6830998058852185
6.939747137967542
5.9385465028669175
6.024617505260481
6.059048830824559
6.166701621779451
6.864417921760868
6.190239321622503
7.008997425593774
6.215124185839342
6.578289603439068
6.2128591509736815
6.60216522186491
7.391094101413286
6.859636008881918
6.8110072649600575
6.600887901545837
6.28886158855957
6.394873940822455
6.768656280112792
6.504127018477139
6.9546683904523725
7.67022593391414
7.083790010939506
7.354323350593393
7.077906325745563
7.052185919219726
7.416192752341406
6.986945627011501
5.216480843020092
4.620858240438819
5.033064063853889
4.989078941916436
4.548082021609654
4.764647501488648
4.8390620758711265
4.8520180362608345
4.999406462095195
5.604117177834567
4.989317990739513
4.848205690559588
6.3633506084767095
5.46304097778645
5.693489008437552
6.587557078177725
6.366126128752678
6.437285466741593
6.09947585332249
6.125640179484154
5.579242178721389
5.963338219639601
6.821058137358853
6.793580449716246
6.35111345287377
6.478304323871076
6.066965486738807
6.18901136118001
5.752772352296656
6.012235847582566
6.499156398755652
6.60009109643941
6.5546792007741335
5.7936949629040875
5.7936949629040875
6.310463137047002
6.36323053467046
6.36323053467046
7.187461032476135
6.098114034058719
6.269661328446249
6.222261719139198
6.1697180657147355
6.445385805684475
6.299916926766535
6.279793058984936
6.076003598534894
6.600898105284665
6.458311667470567
5.970088653022277
6.830733144855016
6.786498669266956
5.793989787756059
7.4207905393850595
6.666198393590625
7.083506426132315
7.083506426132315
7.638090366940882
7.528095299532825
7.470930195274335
7.705079071160657
6.32773706428818
7.071236198583963
6.454517977942668
7.342736379419656
7.107128865452036
7.158902912353362
7.357709047653599
7.228666119761989
6.808114086403276
7.053651895722164
7.331506011019667
7.048354654045754
7.080582602376496
6.566700840315947
5.37168206036921
5.443642339782471
5.620135722956646
5.27333885312585
5.0729140993542226
7.167389237325937
7.241401354100418
7.595918286031048
6.916767192296484
7.045632123501134
7.2848215073983
7.718884947708946
7.076037941781298
6.036550245579286
6.601741682272143
6.974265180801564
6.700947280173471
7.526961879545451
6.791415352794745
6.48642819167445
6.834987310333025
6.391866939706928
6.40606927369247
6.766624289994717
7.6068376923733805
6.590278354174711
6.186498725743355
6.221530984282309
6.918325106836279
6.958829411608598
6.595492587153112
6.664191870160029
6.125726948631224
6.101370279186329
6.146999561204346
6.2614151201302075
5.492998793130398
6.266395614272214
5.995891707405439
6.1574505205067185
6.204356435391365
6.3380370491638525
7.782103330396601
7.998345017697615
7.575002738324117
6.975833358748175
6.699727195691375
7.428773041133364
8.027758470413715
7.387196609084443
7.501903782672598
7.946982955053123
7.633509389135334
8.13294815326554
7.593153954272728
7.773322476571733
6.257300265489016
6.777772870295313
7.9740835586319925
7.818691857445739
7.408282778883879
7.874611949029956
7.418089603960984
7.745763759731921
7.673092259770917
7.200026342005365
7.3446982148986155
7.963537116988359
8.163070091005999
7.388067427652572
7.616319455733798
7.079317827743025
7.1472852436555
7.610987317178401
7.268984152448407
5.334098012069383
4.781808937009089
4.664519572413916
4.604602467167403
4.699893006164948
5.665248684799527
7.116461557980429
6.653539014426094
7.468250357082216
5.056526511846252
5.49741353899668
5.392937758159186
5.248176831293208
5.318969615677269
5.715880035123094
5.456264363210947
5.675706918015257
5.798859891788615
5.618468395188522
4.711762287849542
6.222142568253068
7.447306088492465
6.729459994479649
6.753351163521493
8.145480993628649
7.808338702022132
7.3879466164087235
5.463894003716978
5.379517191747699
5.411192291490178
5.511352760239253
5.488902561920276
6.028391846548363
5.4001047501368555
5.321773499726731
6.821505816382459
7.002043197881694
6.0554818513223765
6.363379749011346
6.27787672873146
5.6987586823178695
6.621775789471442
6.2256353111721205
6.287904855164075
6.02101824047055
6.0971970265869455
6.359166926721101
6.366427409989394
6.359166926721101
5.575661938363514
6.03850824728034
5.656830484506967
5.677146255329345
5.866035174546793
5.04166967904391
6.714936146817749
6.2494858605739845
6.777680368732227
5.764689340110894
5.780552763601237
6.670319763320211
6.530363401622652
6.069912809725575
6.157156305045096
5.995247005964215
6.181991499696464
4.931998639489592
4.606683975312184
5.137474195166684
4.859698902953875
5.604676121559778
5.181089299319668
5.08412930514486
5.074232896856622
8.050445998930023
5.337414414897254
5.117420728722853
5.4009863757810415
5.161149334486987
5.017757407081094
5.544542750904344
4.984909288801298
5.165650244938634
5.658793153014997
6.780429416246983
4.561794782205905
4.872219100743639
5.374367453942561
5.44975273627321
5.536383750173845
5.396677326415192
5.313041697225294
4.885952330335127
5.433071423718189
6.394629311206986
5.495758317302906
5.397396847741912
6.544000545138996
5.772964590214645
5.143454166818412
5.446436189506384
5.4022890682629
5.406553542643636
7.497285047785291
7.311520559853508
6.311237055626831
7.341100829884488
6.560902849667894
7.199590668031821
5.73136344491043
6.0496721570188745
5.588517575250596
6.674896798170196
6.379852618267219
6.1391368341867825
6.334758406561764
5.269048380508509
5.968458025585228
6.643579539225102
8.015296036587445
7.3187206344213855
7.344165935817984
6.418148492582856
6.893997548733786
6.968719599278862
5.905836170732586
4.9800363954601545
5.4214137438590395
3.8074058433716678
7.030284175182026
4.390760574435491
7.084813826554754
6.8115237524270915
6.859314156299399
6.594215318054009
7.17939274994034
7.299168552842945
7.858245521104488
7.963025770371661
4.505407586225479
5.9731531154421
5.6451848085138865
7.638842675910294
7.741735756915868
7.662232716281068
7.921048574599717
6.661811462125413
6.627108797123382
6.809097194774197
5.941303735916648
5.982003134249145
6.509979057185026
6.259114899686692
6.334525806645606
7.130911146438472
6.293148295603681
5.925800662588519
6.1798055835251295
5.657618595987125
6.059930707181518
6.733294641167889
5.904032977165441
5.6006700456056855
5.651992110076521
5.448115907810251
5.73070646174013
5.1006521934554225
5.5324316818621435
5.273581641905012
5.4720185624871
5.145559697040046
5.226264270720736
7.225531908190346
6.90831632469194
6.627065181171771
6.010749353513556
6.278659403110824
5.577629344396014
6.822652130403852
7.023181355875812
6.983174768092372
6.202992360325502
5.98195884990097
5.4114716510816585
6.802935348098665
6.993822134209123
7.010455617675496
6.7732685297930395
5.989222763805199
6.282161356806935
6.533328055098769
7.347592840156813
6.813098185056007
6.659047464243159
7.414551049124466
6.547233103991198
6.217075900013874
6.340317892039153
5.859391778329318
5.499936595572004
5.989788881252859
5.989599998402503
7.09034716285286
6.800189356275223
6.800189356275223
6.969150935462324
6.730601222339355
6.508464627801626
7.6177135080700005
7.833560959060992
7.314310279868535
7.231772014512936
6.035009148955217
7.297726570744904
7.358482760998658
7.454014799938279
7.525313103791578
7.212492425175166
7.1937395516186875
7.372232938247057
4.713152283617963
5.6644781039511365
4.816099876691229
6.121913655631266
3.858392657946547
4.510633688767638
4.510633688767638
3.942463303972554
4.747417930746582
5.814070765086402
5.052978714670904
4.422715905559055
3.922511493272027
4.0772091990414765
4.0772091990414765
6.052327960599375
5.618884633324499
4.523553804604319
3.865625766874853
6.248090027361396
4.4871657482883345
5.101750047555354
5.060947499957693
5.457523858745179
4.461533762821578
4.335170787616394
4.59223175537605
4.637427681554516
6.22734756829148
4.865632691909517
5.915678360581512
5.097064437368599
6.80252412407451
6.80252412407451
6.59521337659075
4.324164031272518
5.6003518883561
5.6003518883561
4.649034574048364
5.015273701843127
7.148028440170224
5.301104989042473
4.704805844055105
6.484085661794081
5.146558872990544
6.1511274370479905
6.196967221795329
6.1818404430123906
6.244239051116821
5.794741607427821
5.340421599330398
4.6463541823490635
6.09164637633416
4.688480536126237
6.118581608866021
6.1724061447350556
6.1724061447350556
4.648152561023181
5.389642144555967
5.674858582109259
6.380537846708654
5.724555694021873
3.8646922781355495
4.799137626145347
5.692161327130688
7.698709364498428
7.549546079821849
7.513056105456355
5.8348384093433285
7.051300274646218
6.436868164937337
7.384777174432445
7.536944662790375
7.12403944392768
7.0088059102107
6.420538590471913
6.789132896474108
6.791845720431469
6.340952553625035
6.689939095012772
6.416167797857429
6.214657847960651
7.076647179270754
6.645268955793632
7.1074804292045455
6.48897210341804
6.868047828673698
6.080748197697893
7.628654359754272
6.980165535003308
7.4215513633506465
5.610706433866076
5.524660668827326
4.453291731379596
5.607626019772642
4.59284142704928
7.528084220885889
7.3410830582113205
7.0276828417668336
7.0058779648679455
6.886691861531883
6.124872797340586
6.719811469305109
4.813805509445196
4.984260288100697
5.114334870858574
4.727436657816245
4.6479730350436235
5.205522860421373
5.56695117092996
6.272467443984935
7.252546610344343
6.450152755642463
7.293213861441113
6.87384582735647
7.133707587982942
7.129699831854115
7.256612974058992
6.868934855888115
6.793004449691944
7.750293568113656
7.690604355330843
7.0106190701375
4.857500103147399
5.010496439577893
4.755819052429169
5.1061440795680735
5.019431587554494
4.866252392629349
5.427564236577163
5.0514044066426225
5.699400983662999
4.839293177968607
4.442586156435018
4.750523852429586
4.979113537819486
5.352583083900067
4.488557465370523
4.67314102958236
5.362219577977785
6.8657470230075965
8.290138273737515
8.207326679726572
8.365264353046644
8.61102456245948
7.921350021060954
6.761809674995749
6.890410303422088
6.732170702030587
6.270687950230453
6.420460133585187
6.709469667508627
5.314289321625455
6.1227116509878945
5.878427924421679
6.308149864106556
5.947560210878844
6.515309357521543
6.40799300778485
6.514228322743283
7.034255786694171
7.055572099842919
6.902320078184806
6.985233575079188
7.482061415154467
7.2175041362355365
7.364487091485836
7.168060296545987
7.549715281215243
4.402259993434557
4.204393362476148
4.318918733828485
4.520459987093296
4.229191871006531
4.739381066026185
4.787099903974205
5.010816374815998
5.255994147015088
5.4076397056827386
5.035244607578578
4.701502614130559
4.893691435930402
4.884299200193475
4.88619147239533
4.963921063174074
5.092645542763243
4.644078091971514
4.839038350311681
5.421276117571511
5.409151835162897
5.108068786651459
4.764400485616706
6.181087642272888
4.299016233090875
4.791085989180443
6.848021605579928
5.840834055544464
6.701068094281653
6.835149648244599
6.203350122377931
6.740979612108917
6.87116475913368
6.307303741437332
6.684767211268723
7.770845248936112
5.089628448974491
4.9067450418840695
5.02383657831578
5.088578214605705
5.174820576040895
5.710582692897509
5.077557041363875
4.802291916925451
6.610223345344697
6.653634593273741
6.6606070447237276
6.950155652120604
6.795570108842305
6.611979811171265
7.157625715016622
6.969781163704162
6.849775374362725
6.569819634263594
6.792584782881498
6.8505677675032155
5.402105680725143
5.150048904894912
4.948080548307369
5.034377530160823
4.460267912370667
6.200578025734339
4.923539865417922
5.035480427688673
4.898361026399014
5.450727935335424
5.106441411989374
5.271469911412869
5.335284038408024
5.544869247954259
7.554146658902402
7.096482318902111
7.21936545748524
7.176770019638378
7.334138755881388
7.963279769960198
7.565482955438737
7.138185486146931
7.488356652491649
7.3601890667551535
7.28800300035414
7.145262015631142
4.4315699970796985
5.244747163808388
5.157836433104351
5.18817024508919
4.907470143873198
4.3557606835588185
4.276679613895349
4.9250394471579915
5.089522520322998
5.3518720587136315
4.222668830051989
5.701826612587123
4.695136187163396
4.066200830282268
3.8426497327905427
4.8790221775303335
4.002945318473068
4.589895352369736
3.6414126167066776
5.068492723559418
4.082322444632485
4.546154110037691
4.701928159358388
4.887182546563445
4.6787224017021805
4.9879609680909
5.214550233523713
5.269240427458542
5.218068458929088
4.90670375156297
5.25460602710148
5.287713479925548
4.796994976938957
5.056363263048153
6.568534738298752
7.009196856526217
7.478136726045743
7.355028517401023
7.20794124522712
7.435326647935138
7.401444304606462
7.607654016353586
7.547013180214874
7.541648494235061
6.875420254114724
6.788778762680544
7.051806545027619
5.212446679115378
5.656889891571556
7.517762468003815
5.217137351851585
5.483440461996338
6.442913828740439
6.446739068223944
4.44347076364259
4.814119040004714
4.832980253389805
5.8579597246555855
6.923914347551759
6.965882757132677
6.770168251509012
7.608210989515078
7.330725819194782
7.269109464395365
4.892078279703012
5.38436378409606
4.930451573794038
4.8347912313416535
5.400434445820261
5.7326891485472995
5.7045172618403255
5.874233494372844
4.857316811878526
4.455790308818159
4.988586082137732
4.847635486578348
5.58327379404995
4.886668875045953
5.123320406701126
6.851797645599056
6.49861655515271
6.787359911304092
6.333872168360798
5.986016085394907
5.14790636486614
6.228387316355662
6.597055964852614
7.514338430039151
6.38590373759155
7.532454308451188
6.582969593858457
6.883827852011815
7.027152592429342
7.480278497896279
6.53145588420424
6.528768346720717
6.036283974608433
6.0143454189267045
6.882932585158542
5.519056759700694
5.493922406222061
7.49607131219001
7.391681227143105
7.446627804185369
6.941633683209704
7.47748669335959
7.63145582241909
8.060126378932472
7.1708657414981705
7.838137859445004
8.39094942302933
8.569843037505054
7.558203080623134
7.475761979312469
7.249433978583752
6.6378774660767395
7.952322882721168
6.4700183105800955
5.759874297245846
6.503795345981358
6.293164456274177
7.034377265829524
6.5698671197985385
6.955790187209361
5.813547832387591
7.762935012729078
6.2399241829011105
7.042894445994989
6.232788639504641
6.541968166650674
7.361069159527406
6.6436570152274985
6.984705426460142
7.827800073293082
7.09344739227663
7.733190523417053
5.79542603557162
7.029254811500117
7.12251398264434
7.193299374160624
6.877948891879072
5.637503497717924
7.014235122605894
7.392355735755627
6.558657031116126
5.807057214447597
5.807057214447597
5.619143761156643
8.162920786502198
8.406677554250525
8.461326683933736
8.017401295493471
8.270463706936333
8.485568114660758
7.915807887914693
7.53073850590451
7.633509403367229
7.836506274489002
7.33161920396757
7.529779991586134
7.613868070932934
8.489911060269787
6.239619966181704
6.334629352565564
6.334629352565564
5.789884922711813
5.593481977789875
5.931254366736817
6.47898861865588
7.031234443480407
7.472729049965052
6.954226457945942
6.311163742170084
6.944124129325177
6.944124129325177
7.680994697449551
4.686883676240635
5.8408543923847605
5.149176383085756
4.943695840778959
5.199450363466038
4.666453399092457
7.518140004328481
7.275766991163458
7.981084656477512
7.0471962309419505
6.949619254385046
7.113130949863183
7.388012617570961
7.785399144316684
7.3900778937110765
7.3786544417046125
7.453015734247202
7.272875496504446
6.837720074371584
7.597205427179648
7.730079171434475
4.9693890463696935
7.1632953083248925
6.983495126335796
7.530836587209104
7.139186994778229
7.573561963488989
7.261313209142527
7.475508607988195
7.397584514717914
7.572786325286046
4.6943661523604785
6.30706110633653
5.578104733099409
4.941517194855517
4.62235855494042
7.316226833219668
6.599581575341053
7.439054803271575
7.576879018337859
7.690206654825804
7.477598104028942
5.346783710998814
5.4663689899515955
5.467455071649818
5.613396726875615
5.791595914645766
5.434499255938391
7.781519620114792
6.339844043559833
7.598748679172749
7.5118897491464285
6.970743331716298
6.510186606071348
6.647818503559008
6.532435239359669
6.636634691904753
6.3875372925093234
6.47151389006903
6.04708250301441
5.776393283736773
5.108423050361338
6.184015981365357
6.182780200832467
5.833006668730437
5.65622121020582
6.543272223831206
6.622513141989178
6.1780863916802655
6.444199693894865
6.510948454733086
6.696918694733127
6.769835543692826
6.660965044019155
6.4160214867824585
7.78809113520703
6.074849405741007
6.999152523928093
6.552978009552274
6.912529151778949
6.891651305526616
5.992847840054202
6.4534625211863
6.574238540093126
6.387126011630977
7.12962371374831
6.1797656081232235
6.640533931515033
6.0669890289022375
6.287419591360173
6.785133122857825
6.2461893888948525
6.86574072113434
7.013500317180172
5.763730441810514
6.504840167446105
6.749061898183382
8.541853234775742
8.3741021133902
8.52244707483189
8.541853234775742
8.3741021133902
8.52244707483189
8.254370033922333
8.529374657344482
5.473882996672552
5.1561505682735485
5.607647719623416
8.251884672565922
8.309747935020708
8.064971151337797
8.437127661558137
7.52764218130863
6.657157140602174
6.053941852845077
5.803543303994369
5.882577902419871
6.131535559114929
5.953003073046059
6.363730829957497
6.283150250403442
5.678842038483597
5.112240280932236
5.3384350562734095
5.9231723912531145
6.191172493429793
6.25782781841356
5.736766402423152
6.417550445718361
6.325026310509988
6.440939543038623
6.079703207290434
6.330605427525057
6.446075091218198
5.8768743134003385
6.161365321240035
6.173347188202506
6.258655099751516
6.2435812129723685
6.307482417468424
6.19750886521951
6.055391864041427
6.968809888141836
6.33479431899991
6.965002093707468
5.5755334216708015
5.2346452178573655
5.390500069500149
5.69757576812664
5.392606944176909
5.403928005887425
5.793115946200872
6.4526652662995065
5.942981390890168
6.326066162800537
5.78317990996865
6.380924007704515
5.817575917955262
5.989357279469261
5.793518356362547
5.73932634515386
5.431122798619973
5.425196231569466
5.507648414211168
5.411932190418746
5.459556751825353
5.6698355639214935
6.409339565060605
6.376702442212415
6.707574239710856
5.428268498747128
5.990510203730049
5.473659229919398
8.11061537286987
7.748918672756279
7.25325408759117
8.141841971573127
7.756852125584466
7.75905011115448
7.5147763728200445
6.937483891995891
7.472267504484494
7.1981253494894935
7.628228024485114
8.08391301799646
4.656959497072297
4.559603111425025
5.5832411016242744
4.940789068994573
5.605008310585751
5.293980705381005
6.922306706685434
6.560770085822009
6.394676203226508
6.786986427727227
5.35200528381665
6.216163727525318
7.4513127201603275
6.479529705156524
6.310536639145656
6.857512314810443
7.232893441818808
6.968754190519833
6.951795686354101
6.697063898726679
6.9905733514585116
7.356632387595996
7.03291580836678
7.663560126242867
7.521795261125268
6.460302197441254
6.404529346367314
3.9909051258648303
4.332473174543866
5.800449289269629
7.189793165974906
5.436460646114582
6.80617688364205
7.416833362855503
5.79595409066946
5.697553187691572
6.336289757342259
6.159293919366838
7.079284176501135
6.230525762373729
6.3388082613415015
6.415818333433593
7.124579213183223
6.8571003833645205
6.209589637294311
6.373965497481731
6.6747140743062685
6.580975133875931
6.49512083219994
6.109446893166227
5.410101988329134
5.6916021874963265
6.233094156514915
5.0541563910479255
5.989843907901798
5.32598609866615
5.607433809090266
6.335256170265517
6.163463146403138
7.882589248489898
8.711596726462218
6.861025142572202
7.80502610480485
7.840934692074402
8.313470693040065
7.667025768186273
7.403979483119355
7.774520166325039
7.973513093198798
7.538655492274455
8.332735775068482
8.078367472885114
8.393506208763117
7.641058673550572
7.906854192695083
8.240732486481148
5.664613339598322
6.7208292213761
5.897640972842577
5.966888678441434
5.8286921701909025
5.343329475623554
6.538281012499631
6.38956958530554
6.236496111473854
6.775724355946388
6.1730354573511566
6.190061771695823
5.741754560302694
6.638144178331303
6.758436415002923
7.115240880739366
6.889634750935008
7.140569019658774
6.724624887439155
6.835028524034701
7.0985340271852255
7.0252965832279255
7.13538521176949
6.571968323862292
6.550094517180496
6.310805118684235
7.016447141691202
7.132264537851347
6.5326537957967155
7.230752130911067
7.072043216041221
7.3112244414232785
6.853854657741305
7.041969526795172
7.469021708741945
7.184671669876572
7.579884773977867
7.107515882428113
4.9693225108999215
RMSE : 1.0240501538228575 ; Pearson Correlation Coefficient : 0.7363279193240799
\ No newline at end of file
RMSE : 1.0240501538228575 ; Pearson Correlation Coefficient : 0.7363279193240799
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
RMSE : 1.0055980079639106 ; Pearson Correlation Coefficient : 0.7307091262603383
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
RMSE : 1.1229353121987031 ; Pearson Correlation Coefficient : 0.6521638915583137
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
RMSE : 1.1092552623206697 ; Pearson Correlation Coefficient : 0.6740378152907927
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
RMSE : 1.0635720063061838 ; Pearson Correlation Coefficient : 0.698596143686921
\ No newline at end of file
RMSE : 1.0635720063061838 ; Pearson Correlation Coefficient : 0.698596143686921
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论