Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prediction.rst #9415

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Update prediction.rst #9415

merged 1 commit into from
Jul 25, 2023

Conversation

NickHilton
Copy link
Contributor

@NickHilton NickHilton commented Jul 25, 2023

Typo for pred_contribs and pred_interactions

See method here for confirmation of param names

def predict(
        self,
        data: DMatrix,
        output_margin: bool = False,
        pred_leaf: bool = False,
        pred_contribs: bool = False,
        approx_contribs: bool = False,
        pred_interactions: bool = False,
        validate_features: bool = True,
        training: bool = False,
        iteration_range: Tuple[int, int] = (0, 0),
        strict_shape: bool = False,
    ) -> np.ndarray:

Typo for `pred_contribs` and `pred_interactions`
@trivialfis
Copy link
Member

Nice fix!

@trivialfis trivialfis merged commit 54579da into dmlc:master Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants