MindSpore-Data-preprocessing/student_task.py

11 lines
364 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

multi_func = lambda x : x*10
def data_pre_handle(data):
# 对输入数据依次执行以下操作,然后作为返回值输出
# 1. 映射使用上面的multi_func函数作为参数
# 2. 分组每3个分为一组末尾不足一组的砍掉
# 3. 重复将数据重复3次
########## Begin ##########
########## end ##########