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]
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)
def Dataset(self): """ DatasetFactory: Tool class for creating and retrieving existing datasets in this project """ return DatasetFactory(self.__api, self.project_id)