Spaces:
Runtime error
Runtime error
Add comment on Hartmann function
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from torch import Tensor
|
|
| 4 |
|
| 5 |
|
| 6 |
def hartmann(x1, x2, x3, x4, x5, x6):
|
|
|
|
| 7 |
x_tensor = Tensor((x1, x2, x3, x4, x5, x6))
|
| 8 |
hartmann_function = Hartmann(dim=6)
|
| 9 |
y = hartmann_function(x_tensor)
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def hartmann(x1, x2, x3, x4, x5, x6):
|
| 7 |
+
# Six dimensional Hartmann function
|
| 8 |
x_tensor = Tensor((x1, x2, x3, x4, x5, x6))
|
| 9 |
hartmann_function = Hartmann(dim=6)
|
| 10 |
y = hartmann_function(x_tensor)
|