f8175e0221bbf31ffc8c10ee809b7ee2e118362d,oddt/scoring/functions/NNScore.py,nnscore,train,#nnscore#Any#Any#Any#,42

Before Change


        self.model = ensemble_model(trained_nets[-20:])

        error = rmse(self.model.predict(self.test_descs), self.test_target)
        r2 = self.model.score(self.test_descs, self.test_target)
        r = np.sqrt(r2)
        print("Test set:",
              "R**2: %.4f" % r2,
              "R: %.4f" % r,
              "RMSE: %.4f" % error,

After Change


            ("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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: freelunchtheorem/Conditional_Density_Estimation
Commit Name: da42c137d164ab56a1f1919c8f0ee21e6172f120
Time: 2018-03-20
Author: jonas.rothfuss@gmx.de
File Name: cde/evaluation/GoodnessOfFit.py
Class Name: GoodnessOfFit
Method Name: hellinger_distance_monte_carlo


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