# Initialization

    # Install the Python backend (only needs to be done once).
    leaf::install_leaf()

    # Load package
    library(leaf)

    ## leaf: Using Python environment 'r-leafr'.

    if (!backend_available()) {
      message("Install backend with leaf::install_leaf()")
    }

    # Initialize the symbolic regressor
    regressor = leaf::SymbolicRegressor$new(
      engine = "rsrm",
      loss = 'PoissonDeviance',
      num_iterations = 3,
      base = list(verbose = FALSE)
    )