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
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)
¶
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 |
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', 'dict', 'dataframe']
|
The parameter decides the format of the output. - If 'dict' the output is a dict of dict - If 'dataframe' the output is a pandas DataFrame |
'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 |