setups
OpenMLParameter
¶
Parameter object (used in setup).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_id
|
int
|
The input id from the openml database |
required |
flow
|
The flow to which this parameter is associated |
required | |
flow
|
The name of the flow (no version number) to which this parameter is associated |
required | |
full_name
|
str
|
The name of the flow and parameter combined |
required |
parameter_name
|
str
|
The name of the parameter |
required |
data_type
|
str
|
The datatype of the parameter. generally unused for sklearn flows |
required |
default_value
|
str
|
The default value. For sklearn parameters, this is unknown and a default value is selected arbitrarily |
required |
value
|
str
|
If the parameter was set, the value that it was set to. |
required |
Source code in openml/setups/setup.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
OpenMLSetup
¶
Setup object (a.k.a. Configuration).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
setup_id
|
int
|
The OpenML setup id |
required |
flow_id
|
int
|
The flow that it is build upon |
required |
parameters
|
dict
|
The setting of the parameters |
required |
Source code in openml/setups/setup.py
get_setup(setup_id)
¶
Downloads the setup (configuration) description from OpenML and returns a structured object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
setup_id
|
int
|
The Openml setup_id |
required |
Returns:
| Type | Description |
|---|---|
OpenMLSetup (an initialized openml setup object)
|
|
Source code in openml/setups/functions.py
initialize_model(setup_id, *, strict_version=True)
¶
Initialized a model based on a setup_id (i.e., using the exact same parameter settings)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
setup_id
|
int
|
The Openml setup_id |
required |
strict_version
|
bool
|
See |
True
|
Returns:
| Type | Description |
|---|---|
model
|
|
Source code in openml/setups/functions.py
list_setups(offset=None, size=None, flow=None, tag=None, setup=None, output_format='object')
¶
List all setups matching all of the given filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offset
|
int
|
|
None
|
size
|
int
|
|
None
|
flow
|
int
|
|
None
|
tag
|
str
|
|
None
|
setup
|
Iterable[int]
|
|
None
|
output_format
|
Literal['object', 'dataframe']
|
The parameter decides the format of the output. - If 'dataframe' the output is a pandas DataFrame - If 'object' the output is a dictionary of OpenMLSetup objects |
'object'
|
Returns:
| Type | Description |
|---|---|
dict or dataframe
|
|
Source code in openml/setups/functions.py
setup_exists(flow)
¶
Checks whether a hyperparameter configuration already exists on the server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flow
|
OpenMLFlow
|
The openml flow object. Should have flow id present for the main flow and all subflows (i.e., it should be downloaded from the server by means of flow.get, and not instantiated locally) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
setup_id |
int
|
setup id iff exists, False otherwise |