def score(self, x, yTrue):
        assert len(x) == len(yTrue)

        if isinstance(yTrue, PurePandas.PurePythonDataFrame):
            yTrue = yTrue.iloc[:, 0]

        def eltAt(ix):
            prediction = self.predictionFunction_(x.iloc[ix])
            if prediction == yTrue[ix]:
                return 1.0
            return 0.0

        return sum(eltAt(ix) for ix in xrange(len(x))) / len(x)
Compute the mean accuracy in predicting ``x`` with respect to ``yTrue``.
dataset/ETHPy150Open ufora/ufora/packages/python/pyfora/algorithms/regressionTrees/BinaryClassificationModel.py/BinaryClassificationModel.score