Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 为字编码器生成批处理_Python 3.x_Machine Learning - Fatal编程技术网

Python 3.x 为字编码器生成批处理

Python 3.x 为字编码器生成批处理,python-3.x,machine-learning,Python 3.x,Machine Learning,我不知道skip_window在这种情况下会做什么。显然,它不等于批量大小。此外,我不知道第二个for循环做什么——如果skip_窗口是标量,那么target如何在targets_to_中避免,就像在第二个嵌套for循环中一样。有人能给我总结一下这个功能吗 从集合导入数据 def生成批次(批次大小、跳过数量、跳过窗口): 全球数据索引 #这些条件必须成立 断言批大小%num\u跳过==0 断言num_跳过

我不知道skip_window在这种情况下会做什么。显然,它不等于批量大小。此外,我不知道第二个for循环做什么——如果skip_窗口是标量,那么target如何在targets_to_中避免,就像在第二个嵌套for循环中一样。有人能给我总结一下这个功能吗

从集合导入数据
def生成批次(批次大小、跳过数量、跳过窗口):
全球数据索引
#这些条件必须成立
断言批大小%num\u跳过==0
断言num_跳过