(self, single_model_pb)
return one_vs_rest_result
Save each classifier model of OneVsRest. It just include model_param but not model_meta now
Save each classifier model of OneVsRest. It just include model_param but not model_meta now
Save each classifier model of OneVsRest . It just include model_param but not model_meta now
def save(self, single_model_pb):
        """
        Save each classifier model of OneVsRest. It just include model_param but not model_meta now
        """
        classifier_pb_objs = []
        for classifier in self.models:
            single_param_dict = classifier.get_single_model_param()
            classifier_pb_objs.append(single_model_pb(**single_param_dict))

        one_vs_rest_class = [str(x) for x in self.classes]
        one_vs_rest_result = {
            'completed_models': classifier_pb_objs,
            'one_vs_rest_classes': one_vs_rest_class
        }
        return one_vs_rest_result
def save ( self , single_model_pb ) : classifier_pb_objs = [ ] for classifier in self . models : single_param_dict = classifier . get_single_model_param ( ) classifier_pb_objs . append ( single_model_pb ( * * single_param_dict ) ) one_vs_rest_class = [ str ( x ) for x in self . classes ] one_vs_rest_result = { 'completed_models' : classifier_pb_objs , 'one_vs_rest_classes' : one_vs_rest_class } return one_vs_rest_result