Closed yedidyakfir closed 1 month ago
I am not sure I understand how you get the same matrices in both cases. If you don't, you can't expect to see the same?
From the picture it looks like some scaling is different, hence the second function is steeper. It could be x- or f-value scaling.
I suggest to evaluate the very same point(s) on the function from cocoex.Suite('bbob',...
and on the implemented one. They should be identical, obviously. There exists also an old Python implementation to compare with which can be found here.
Thanks, the new function is much closer to the one in the library, but notice that the function is different from the one I found in the docs.
For example, you dont add 0.5, and you dont multiply with big lambda, is it possible the docs are deprecated?
Thanks
For example, you dont add 0.5, and you dont multiply with big lambda, is it possible the docs are deprecated?
I don't quite understand, I just had a quick look at the Python code, and it seems to add 0.5 ($x\mapsto\lfloor 0.5 + x\rfloor$ is up to a nullset the round function) and to multiply with $\Lambda$ too in line 991. The documentation seemed to have been carefully reviewed repeatedly, I do still suspect it is correct and agrees with the implementations.
For a start, I don't think the lambda_10_matrix
in the code of the OP, first line of the function, is computed correctly: there seem to be braces and a square root missing. 10 ** torch.arange(dim) / (dim - 1)
must read (10 ** 0.5) ** (torch.arange(dim) / (dim - 1))
, at least that seems to be closer to what I see in the original code and the documentation, but don't take for granted that this is fully correct too, I didn't triple check. Unfortunately, I don't think this fully explains the difference we see though, so I would suspect there are more discrepancies.
Hi, I am trying to recreate the step ellipsoid function with pytorch (I am conducting a research and I am trying to analyze the function to find some analytical properties).
Here is the code I came up with
However, It seems function I print is vastly different from the one in the COCO dataset and much easier to solve. I added an image of the function I created in 2d [-5,5]![image](https://github.com/numbbo/coco/assets/23723129/a230133e-b19e-43b0-b7d4-4070d0f96a3d)
Notice how wide the minimum area is, while in the real coco function, this space is very narrow, observe![image](https://github.com/numbbo/coco/assets/23723129/ba4f7c12-f9b1-4070-a316-0d41deb279bb)
I tried to play around with the rotation matrix R and Q but nothing helped. Any ideas?