Пример #1
0
 def read(self, artifacts: ArtifactCollection) -> Dataset:
     return Dataset(artifacts.bytes_dict()['data'].decode('utf8'),
                    TestDatasetType())
Пример #2
0
def data() -> Dataset:
    return Dataset('abcdefg', TestDatasetType())
Пример #3
0
 def read(self, artifacts: ArtifactCollection) -> Dataset:
     payload = artifacts.bytes_dict()[OneFileDatasetWriter.FILENAME]
     return Dataset(self.convert(payload), self.dataset_type)