f8175e0221bbf31ffc8c10ee809b7ee2e118362d,oddt/scoring/functions/RFScore.py,rfscore,train,#rfscore#Any#Any#Any#,93

Before Change



        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,
              sep="\t", file=sys.stderr)

        error = rmse(self.model.predict(self.train_descs), self.train_target)
        oob_error = rmse(self.model.oob_prediction_, self.train_target)
        r2 = self.model.score(self.train_descs, self.train_target)

After Change


        print("Training RFScore v%i on PDBBind v%i"
              % (self.version, pdbbind_version), file=sys.stderr)

        sets = [
            ("Test", self.model.predict(self.test_descs), self.test_target),
            ("Train", self.model.predict(self.train_descs), self.train_target),
            ("OOB", self.model.oob_prediction_, 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)

        // compile trees
        if compiledtrees is not None:
            try:
                print("Compiling Random Forest using sklearn-compiledtrees",
                      file=sys.stderr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


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: AlexEMG/DeepLabCut
Commit Name: d63692e0304ae593352d509e0222f0d5befc67dc
Time: 2021-01-06
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/pose_estimation_tensorflow/predict_multianimal.py
Class Name:
Method Name: GetPoseandCostsF


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: AlexEMG/DeepLabCut
Commit Name: 9c3d9ba05502b5f553bc8abc44d08e09e1851e68
Time: 2021-02-05
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/pose_estimation_tensorflow/predict_multianimal.py
Class Name:
Method Name: GetPoseandCostsF