Description Usage Arguments Value
This function creates the logit leaf model. It assumes a dataframe with numeric values as input and a corresponding vector with dependent values. Decision tree parameters threshold for pruning and number of observations per leaf can be set.
1 | llm.predict(df, y_value, llm_object)
|
df |
dataframe containing numerical independent variables |
y_value |
numerical vector of dependent variable. Currently only two class classification is supported |
llm_object |
output of the llm function. A LLM object containing decision rules that define segments and logistic regressions per segment |
nbr_obs_leaf |
the minimum number of observations in a leaf node |
the predictions of the llm model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.