MCPcopy
hub / github.com/huggingface/datasets / get_features

Method get_features

tests/features/test_array_xd.py:145–152  ·  view source on GitHub ↗
(self, array_feature, shape_1, shape_2)

Source from the content-addressed store, hash-verified

143@parameterized.named_parameters(get_array_feature_types())
144class ArrayXDTest(unittest.TestCase):
145 def get_features(self, array_feature, shape_1, shape_2):
146 return datasets.Features(
147 {
148 "image": array_feature(shape_1, dtype="float32"),
149 "source": Value("string"),
150 "matrix": array_feature(shape_2, dtype="float32"),
151 }
152 )
153
154 def get_dict_example_0(self, shape_1, shape_2):
155 return {

Callers 3

test_writeMethod · 0.95
test_write_batchMethod · 0.95
test_from_dictMethod · 0.95

Calls 1

ValueClass · 0.90

Tested by

no test coverage detected