MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / data_split

Function data_split

utils/format_conversion.py:21–30  ·  view source on GitHub ↗

Usage: randomly spliting dataset :param src_list: :return:

(src_list)

Source from the content-addressed store, hash-verified

19
20
21def data_split(src_list):
22 """
23 Usage:
24 randomly spliting dataset
25 :param src_list:
26 :return:
27 """
28 counter_list = random.sample(range(0, len(src_list)), 550)
29
30 return counter_list
31
32
33if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected