Usage: randomly spliting dataset :param src_list: :return:
(src_list)
| 19 | |
| 20 | |
| 21 | def 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 | |
| 33 | if __name__ == '__main__': |
nothing calls this directly
no outgoing calls
no test coverage detected