예제 #1
0
    def filter(self):
        """
        Get all the rulesets of the project.

        Returns:
            List of ruleset
        """
        from HyperAPI.hyper_api.dataset import DatasetFactory
        factory = DatasetFactory(self.__api, self.__project_id)
        ruleset_project = self.__api.Rules.getlearnings(project_ID=self.__project_id)
        return [Ruleset(self, self.__api, factory.get_by_id(ruleset.get('datasetId')), ruleset) for ruleset in ruleset_project]
예제 #2
0
    def Dataset(self):
        """
        This object includes utilities for creating and retrieving existing datasets in this project.

        Returns:
            An object of type DatasetFactory
        """
        return DatasetFactory(self.__api, self.project_id)
예제 #3
0
 def Dataset(self):
     """
     DatasetFactory: Tool class for creating and retrieving existing datasets in this project
     """
     return DatasetFactory(self.__api, self.project_id)