Ejemplo n.º 1
0
 def score(self, X, metric=r2_score):
     print("Scoring model by masking the matrix.")
     return score_model(self, X, metric=metric)
Ejemplo n.º 2
0
 def score(self, data, metric=r2_score):
     imputedGenes = list(zip(*[net.targetGenes for net in self.networks]))
     return score_model(self,
                        pd.DataFrame(data),
                        metric=r2_score,
                        cols=imputedGenes)