doc line too long (90 > 88 characters)
10 Example:
11 >>> import test_functions
12 >>> rastrigin = test_functions.Rastrigin()
13 >>> x = torch.linspace(rastrigin.x_domain[0], rastrigin.x_domain[1], rastrigin.num_pt)14 >>> y = torch.linspace(rastrigin.y_domain[0], rastrigin.y_domain[1], rastrigin.num_pt)
15 >>> Y, X = torch.meshgrid(x, y)
16 >>> Z = rastrigin([X, Y])
doc line too long (90 > 88 characters)
11 >>> import test_functions
12 >>> rastrigin = test_functions.Rastrigin()
13 >>> x = torch.linspace(rastrigin.x_domain[0], rastrigin.x_domain[1], rastrigin.num_pt)
14 >>> y = torch.linspace(rastrigin.y_domain[0], rastrigin.y_domain[1], rastrigin.num_pt)15 >>> Y, X = torch.meshgrid(x, y)
16 >>> Z = rastrigin([X, Y])
17
doc line too long (93 > 88 characters)
9 Example:
10 >>> import test_functions
11 >>> rosenbrock = test_functions.Rosenbrock()
12 >>> x = torch.linspace(rosenbrock.x_domain[0], rosenbrock.x_domain[1], rosenbrock.num_pt)13 >>> y = torch.linspace(rosenbrock.y_domain[0], rosenbrock.y_domain[1], rosenbrock.num_pt)
14 >>> Y, X = torch.meshgrid(x, y)
15 >>> Z = rosenbrock([X, Y])
doc line too long (93 > 88 characters)
10 >>> import test_functions
11 >>> rosenbrock = test_functions.Rosenbrock()
12 >>> x = torch.linspace(rosenbrock.x_domain[0], rosenbrock.x_domain[1], rosenbrock.num_pt)
13 >>> y = torch.linspace(rosenbrock.y_domain[0], rosenbrock.y_domain[1], rosenbrock.num_pt)14 >>> Y, X = torch.meshgrid(x, y)
15 >>> Z = rosenbrock([X, Y])
16
Description
Docstring line lengths are recommended to be no greater than 79 characters.