| export_hyperparameters {familiar} | R Documentation |
Extract and export model hyperparameters.
Description
Extract and export model hyperparameters from models in a familiarCollection.
Usage
export_hyperparameters(
object,
dir_path = NULL,
aggregate_results = TRUE,
export_collection = FALSE,
...
)
## S4 method for signature 'familiarCollection'
export_hyperparameters(
object,
dir_path = NULL,
aggregate_results = TRUE,
export_collection = FALSE,
...
)
## S4 method for signature 'ANY'
export_hyperparameters(
object,
dir_path = NULL,
aggregate_results = TRUE,
export_collection = FALSE,
...
)
Arguments
object |
A |
dir_path |
Path to folder where extracted data should be saved. |
aggregate_results |
Flag that signifies whether results should be aggregated for export. |
export_collection |
(optional) Exports the collection if TRUE. |
... |
Arguments passed on to
|
Details
Data, such as model performance and calibration information, is
usually collected from a familiarCollection object. However, you can also
provide one or more familiarData objects, that will be internally
converted to a familiarCollection object. It is also possible to provide a
familiarEnsemble or one or more familiarModel objects together with the
data from which data is computed prior to export. Paths to the previous
files can also be provided.
All parameters aside from object and dir_path are only used if object
is not a familiarCollection object, or a path to one.
Many model hyperparameters are optimised using sequential model-based
optimisation. The extracted hyperparameters are those that were selected to
construct the underlying models (familiarModel objects).
Value
A data.table (if dir_path is not provided), or nothing, as all data
is exported to csv files. In case of the latter, hyperparameters are
summarised.