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

Method test_from_dict

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

Source from the content-addressed store, hash-verified

233 del dataset
234
235 def test_from_dict(self, array_feature, shape_1, shape_2):
236 dict_examples = self.get_dict_examples(shape_1, shape_2)
237 dataset = datasets.Dataset.from_dict(
238 dict_examples, features=self.get_features(array_feature, shape_1, shape_2)
239 )
240 self._check_getitem_output_type(dataset, shape_1, shape_2, dict_examples["matrix"][0])
241 del dataset
242
243
244class ArrayXDDynamicTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

get_dict_examplesMethod · 0.95
get_featuresMethod · 0.95
from_dictMethod · 0.45

Tested by

no test coverage detected