MCPcopy Create free account
hub / github.com/tensorflow/datasets / is_valid_dataset_name

Function is_valid_dataset_name

tensorflow_datasets/core/naming.py:104–107  ·  view source on GitHub ↗

Returns True is the given name is a valid dataset name.

(name_str: str)

Source from the content-addressed store, hash-verified

102
103
104def is_valid_dataset_name(name_str: str) -> bool:
105 """Returns True is the given name is a valid dataset name."""
106 res = _NAME_REG.match(name_str)
107 return bool(res)
108
109
110def is_valid_dataset_and_class_name(name_str: str) -> bool:

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected