本文整理汇总了Python中NeuralNetwork.NeuralNetwork.pad_with_wrap方法的典型用法代码示例。如果您正苦于以下问题:Python NeuralNetwork.pad_with_wrap方法的具体用法?Python NeuralNetwork.pad_with_wrap怎么用?Python NeuralNetwork.pad_with_wrap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NeuralNetwork.NeuralNetwork
的用法示例。
在下文中一共展示了NeuralNetwork.pad_with_wrap方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from NeuralNetwork import NeuralNetwork [as 别名]
# 或者: from NeuralNetwork.NeuralNetwork import pad_with_wrap [as 别名]
from NeuralNetwork import NeuralNetwork as NN
import numpy as np
import test_fixtures as tf
a = tf.t3_123
assert NN.pad_with_zeros(a, 10).shape[0] % 10 == 0
assert NN.pad_with_zeros(a, 3).shape[0] % 3 == 0
assert NN.pad_with_zeros(a, 5).shape[0] % 5 == 0
assert NN.pad_with_zeros(a, 1).shape[0] % 1 == 0
assert NN.pad_with_zeros(a, 2).shape[0] % 2 == 0
assert NN.pad_with_wrap(a, 10).shape[0] % 10 == 0
assert NN.pad_with_wrap(a, 3).shape[0] % 3 == 0
assert NN.pad_with_wrap(a, 5).shape[0] % 5 == 0
assert NN.pad_with_wrap(a, 1).shape[0] % 1 == 0
assert NN.pad_with_wrap(a, 2).shape[0] % 2 == 0
assert NN.DataSet.training.value == 0
assert NN.DataSet.validation.value == 1
assert NN.DataSet.testing.value == 2