functions
__list_setups(api_call, output_format='object')
¶
Helper function to parse API calls which are lists of setups
Source code in openml/setups/functions.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 |