f8175e0221bbf31ffc8c10ee809b7ee2e118362d,oddt/scoring/functions/NNScore.py,nnscore,train,#nnscore#Any#Any#Any#,42
Before Change
sep="\t", file=sys.stderr)
error = rmse(self.model.predict(self.train_descs), self.train_target)
r2 = self.model.score(self.train_descs, self.train_target)
r = np.sqrt(r2)
print("Train set:",
"R**2: %.4f" % r2,
"R: %.4f" % r,
"RMSE: %.4f" % error,
After Change
self.test_target.flatten()))
self.model = ensemble_model(trained_nets[-20:])
sets = [
("Test", self.model.predict(self.test_descs), self.test_target),
("Train", self.model.predict(self.train_descs), self.train_target)]
for name, pred, target in sets:
print("%s set:" % name,
"R2_score: %.4f" % r2_score(target, pred),
"Rp: %.4f" % pearsonr(target, pred)[0],
"RMSE: %.4f" % rmse(target, pred),
sep="\t", file=sys.stderr)
if sf_pickle is None:
return self.save("NNScore_pdbbind%i.pickle" % (pdbbind_version))
else:
return self.save(sf_pickle)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: oddt/oddt
Commit Name: f8175e0221bbf31ffc8c10ee809b7ee2e118362d
Time: 2018-02-08
Author: maciek@wojcikowski.pl
File Name: oddt/scoring/functions/NNScore.py
Class Name: nnscore
Method Name: train
Project Name: pyannote/pyannote-audio
Commit Name: 16fb800c2d3f6d7198ad237adcab8f60828d0982
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply
Project Name: oddt/oddt
Commit Name: f8175e0221bbf31ffc8c10ee809b7ee2e118362d
Time: 2018-02-08
Author: maciek@wojcikowski.pl
File Name: oddt/scoring/functions/RFScore.py
Class Name: rfscore
Method Name: train
Project Name: tensorflow/models
Commit Name: b1a704d791a4524510e1c8bdb99f1a3c7907c9d1
Time: 2018-06-22
Author: 31663267+k-w-w@users.noreply.github.com
File Name: official/transformer/model/beam_search_test.py
Class Name: BeamSearchHelperTests
Method Name: test_shape_list