(self, model)
gets the accuracies for a specific model
    :param modeL; the key in the models dictionary.
gets the accuracies for a specific model
    :param modeL; the key in the models dictionary.
gets the accuracies for a specific model : param modeL ; the key in the models dictionary .
def get_accuracy(self, model):
    '''
    gets the accuracies for a specific model
    :param modeL; the key in the models dictionary.
    '''
    if model in self.models:
        if 'accuracy' in self.models[model].keys():
            return self.models[model]['accuracy']
        elif 'cross_val_score' in self.models[model].keys():
            return {'cross_val_score': self.models[model]['cross_val_score']}
        else:
            raise Exception("Accuracy is not defined for {}".format(model))
    else:
        raise Exception(
            "The requested model has not been applied to the client.")
def get_accuracy ( self , model ) : if model in self . models : if 'accuracy' in self . models [ model ] . keys ( ) : return self . models [ model ] [ 'accuracy' ] elif 'cross_val_score' in self . models [ model ] . keys ( ) : return { 'cross_val_score' : self . models [ model ] [ 'cross_val_score' ] } else : raise Exception ( "Accuracy is not defined for {}" . format ( model ) ) else : raise Exception ( "The requested model has not been applied to the client." )