def validate_label(self):
        """@validate_label

        This method validates either the dependent variable (observation)
        label(s), or the independent variable (feature) label(s).

        """

        try:
            Draft4Validator(jsonschema_string()).validate({'value': self.data})
        except Exception, error:
            self.list_error.append(str(error))
Ejemplo n.º 2
0
    def validate_label(self):
        '''@validate_label

        This method validates either the dependent variable (observation)
        label(s), or the independent variable (feature) label(s).

        '''

        try:
            Draft4Validator(jsonschema_string()).validate({'value': self.data})
        except Exception, error:
            self.list_error.append(str(error))
 def validate_label(self):
     try:
         Draft4Validator(jsonschema_string()).validate({'value': self.data})
     except Exception, error:
         self.list_error.append(str(error))