-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
Hi,
When running the following code:
from ConfigSpace import UniformIntegerHyperparameter
import numpy as np
rs = np.random.RandomState(0)
hp = UniformIntegerHyperparameter("a", lower=0, upper=2048, log=False)
neighbors = hp.neighbors_values(1024, n=100, seed=rs)
print(neighbors)I get as a result:
[100 113 176 192 212 231 269 304 317 325 328 337 345 356 361 362 363 367
375 380 391 393 394 413 421 423 428 435 440 442 457 461 472 477 485 489
494 503 511 518 522 526 537 539 540 543 545 547 550 554 562 571 573 576
581 585 590 594 596 600 605 614 617 620 624 632 637 650 652 657 659 660
667 671 674 685 691 695 708 711 712 718 719 720 721 722 725 727 729 735
739 740 741 742 743 744 745 748 752 757]
I would suspect that a neighbourhood should be symmetric around the value of 1024 since the documentation of the method states "Sample neighbours of a value". Is this a bug or am I misunderstanding something?
ConfigSpace Version: 1.2.1
Python Version: 3.10.11
Thanks for the help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels