Skip to contents

tp_model takes TreePPL code and prepares it to be used by tp_compile().

Usage

tp_model(model_input)

Arguments

model_input

One of tree options:

  • The full path of the model file that contains the TreePPL code, OR

  • A string with the name of a model supported by treepplr (see tp_model_library()), OR

  • A string containing the entire TreePPL code.

Value

The path to the TreePPL model file