Skip to content

Commit 0fb8329

Browse files
committed
corrected param space name
1 parent 23787e3 commit 0fb8329

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ml_grid/util/param_space.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, size: Optional[str]):
5454
"lin_zero_one": np.linspace(0.0, 1.0, nstep) / 10,
5555
}
5656

57-
if size == "xsmall":
57+
elif size == "xsmall" or size == "small":
5858

5959
nstep = 2
6060
self.param_dict = {
@@ -69,7 +69,7 @@ def __init__(self, size: Optional[str]):
6969
"lin_zero_one": np.linspace(0.0, 1.0, nstep) / 10,
7070
}
7171

72-
if size == "xwide":
72+
elif size == "xwide":
7373

7474
nstep = 2
7575
self.param_dict = {
@@ -113,7 +113,7 @@ def __init__(self, size: Optional[str]):
113113
"log_zero_one": Real(0.1, 1.0, prior="log-uniform"), # Correct usage of Real
114114
"lin_zero_one": Real(0.0, 0.1, prior="uniform"), # Correct usage of Real
115115
}
116-
elif size == "xsmall":
116+
elif size == "xsmall" or size == "small":
117117
nstep = 2
118118
self.param_dict = {
119119
"log_epoch": Integer(

0 commit comments

Comments
 (0)