Skip to content

Using a function to define itself? #29

Description

@RossKen

I have been trying to figure out what xgboostExplainer does under the hood and came across something strange (to my eyes anyway) when looking at the definition of findLeaves.R.

image

I can't work out:

  1. why findLeaves() is used in the definition of findLeaves() (see line11)
  2. how you can have three parameters of findLeaves() (see line 11) when it only has two by the definition being created. What does the with = FALSE part do?

Any help with either of these queries would be really appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions