getml.project.Hyperopts
Hyperopts(data=None)
Container which holds all hyperopts associated with the currently running project. The container supports slicing and is sort- and filterable.
Source code in getml/project/containers/hyperopts.py
 | 32 33 34 35 36 37 38 |  | 
filter
Filters the hyperopts container.
| PARAMETER | DESCRIPTION | 
|---|---|
| conditional | A callable that evaluates to a boolean for a given item.   TYPE:  | 
| RETURNS | DESCRIPTION | 
|---|---|
| Hyperopts | A container of filtered hyperopts. | 
Example
gaussian_hyperopts = getml.project.hyperopts.filter(lamda hyp: "Gaussian" in hyp.type)
Source code in getml/project/containers/hyperopts.py
 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |  | 
sort
Sorts the hyperopts container.
| PARAMETER | DESCRIPTION | 
|---|---|
| key | A callable that evaluates to a sort key for a given item.   TYPE:  | 
| descending | Whether to sort in descending order.   TYPE:  | 
| RETURNS | DESCRIPTION | 
|---|---|
| Hyperopts | A container of sorted hyperopts. | 
Example
by_type = getml.project.hyperopt.sort(lambda hyp: hyp.type)
Source code in getml/project/containers/hyperopts.py
 | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |  |