Skip to content

Using a function to define itself? #29

@RossKen

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!

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