printPopulation | R Documentation |
This function prints detailed information about a population of models. It supports multiple methods for displaying the model summaries, such as providing a "digested" view, a "short" version, or a more detailed "long" view. It can also print the structure of each model within the population.
printPopulation(obj, method = "short", score = "fit_", indent = "")
obj |
A population of models. This should be a valid object returned by a model training procedure. |
method |
A string specifying the format in which the population summary will be printed. Possible values are "digested", "short", "long", and "str". "digested" provides a summarized view of the population's properties, "short" gives a brief summary of each model, "long" provides a more detailed view, and "str" prints the structure of each model in the population. |
score |
A string specifying the score attribute to be used when printing models. Default is "fit_". |
indent |
A string used for indentation when printing information, helpful when displaying hierarchical data. |
- The "digested" method provides an overview of the population, summarizing key attributes such as the sparsity and learner type. - The "short" method gives a brief summary of each model, including its learner, language, and evaluation score. - The "long" method offers a detailed description of each model, including all relevant information about coefficients and evaluation metrics. - The "str" method prints the structure of each model using 'str()'.
None. The function prints the information directly.
Edi Prifti (IRD)
## Not run:
# Assuming 'population' is a valid population of models
printPopulation(population, method = "short")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.