def METHOD_NAME(self, bugs, classes, probabilities):
    rca_values = self.get_rca(bugs)
    for i in len(classes):
        for rca in rca_values[i]:
            if rca in self.RCA_LIST:
                if probabilities:
                    classes[i][self.RCA_LIST.index(rca)] = 1.0
                else:
                    classes[i][self.RCA_LIST.index(rca)] = 1
    return classes