-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
Description
ConfigSpace/ConfigSpace/hyperparameters.pyx
Lines 807 to 824 in 88051eb
| def get_neighbors( | |
| self, | |
| value: Any, | |
| rs: np.random.RandomState, | |
| number: int = 4, | |
| transform: bool = False, | |
| std: float = 0.2 | |
| ) -> List[float]: | |
| neighbors = [] # type: List[float] | |
| while len(neighbors) < number: | |
| neighbor = rs.normal(value, std) # type: float | |
| if neighbor < 0 or neighbor > 1: | |
| continue | |
| if transform: | |
| neighbors.append(self._transform(neighbor)) | |
| else: | |
| neighbors.append(neighbor) | |
| return neighbors |
I tried with an actual value generated from the HP and it caused obscene numbers