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

[python-package] add install option to enable printing of time costs #5497

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

Remy-Luciani
Copy link
Contributor

According to the install guide:

Users who want to perform benchmarking can make LightGBM output time costs for different internal routines by adding -DUSE_TIMETAG=ON to CMake flags.

This feature was unfortunately not available when installing LightGBM from the Python package. This PR attempts to fix this. :)

@ghost
Copy link

ghost commented Sep 22, 2022

CLA assistant check
All CLA requirements met.

@jameslamb jameslamb changed the title feat(python): make time costs printing available [python-package] add install option to enable printing of time costs Sep 22, 2022
python-package/setup.py Outdated Show resolved Hide resolved
python-package/setup.py Outdated Show resolved Hide resolved
@jmoralez
Copy link
Collaborator

jmoralez commented Sep 22, 2022

@jameslamb the dask tests seem to be getting stuck and we get timeouts on the jobs, (Linux regular this PR, several Linux jobs in another PR, CUDA jobs in that PR). Should we open an issue for this? I'll try to replicate the problem later.

@Remy-Luciani
Copy link
Contributor Author

@jmoralez Could I do something to help? I can re-push something to launch the CI jobs again but maybe some problems are remaining? Let me know :)

@jameslamb
Copy link
Collaborator

@Remy-Luciani LightGBM's CI is facing some significant issues right now (see #5509 and #5510), and we won't be able to come back to this PR until they've been addressed. Sorry for the inconvenience.

@jameslamb
Copy link
Collaborator

@jmoralez to answer your question directly.... yes I think we should open a separate issue for the Dask timeout thing, and I'd be grateful if you have time to investigate it. (#5510 (comment))

@jameslamb
Copy link
Collaborator

hey @Remy-Luciani , happy to say that we've fixed LightGBM's CI issues (#5510)! Thanks very much for your patience.

If you can please merge the latest changes on master into this branch, we'll review this again and try to move it forward.

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, otherwise this looks good to me and I support adding this option to the Python package.

But I'd also like @jmoralez or @StrikerRUS to approve before this is merged.

python-package/README.rst Outdated Show resolved Hide resolved
According to the [install guide](https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html):
> Users who want to perform benchmarking can make LightGBM output time costs for different internal routines by adding -DUSE_TIMETAG=ON to CMake flags.

This feature was unfortunately not available when installing LightGBM from the Python package. This commit fixes this.
@Remy-Luciani
Copy link
Contributor Author

All feedbacks have been taken and the branch is up to date with master! :) Let me know if there are another feedbacks

@jameslamb jameslamb self-requested a review October 11, 2022 13:50
Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the changes! looks good to me.

@jameslamb
Copy link
Collaborator

closing and re-opening to try to fix this flaky license/cla job (sorry about that!)

Screen Shot 2022-10-11 at 11 13 35 AM

That seemed to fix it last time we saw something similar: #5160 (comment)

@jameslamb jameslamb closed this Oct 11, 2022
@jameslamb jameslamb reopened this Oct 11, 2022
@Remy-Luciani
Copy link
Contributor Author

@microsoft-github-policy-service agree [company="Theodo"]

@jameslamb
Copy link
Collaborator

I'm so sorry @Remy-Luciani . These comments and commands look new.

The CLA bot is something controlled by Microsoft at an organization level, not something that we (the maintainers of LightGBM) control or configure 😬 .

So that's bot's comments are as confusing to me as they probably are to you 😭

@Remy-Luciani
Copy link
Contributor Author

I'm so sorry @Remy-Luciani . These comments and commands look new.

The CLA bot is something controlled by Microsoft at an organization level, not something that we (the maintainers of LightGBM) control or configure 😬 .

So that's bot's comments are as confusing to me as they probably are to you 😭

No worries. I don't know if you can make some feedback to someone at Microsoft since the first message was misleading by adding brackets to the command syntax. 😛

@Remy-Luciani
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Theodo"

@Remy-Luciani
Copy link
Contributor Author

I'm so sorry @Remy-Luciani . These comments and commands look new.
The CLA bot is something controlled by Microsoft at an organization level, not something that we (the maintainers of LightGBM) control or configure 😬 .
So that's bot's comments are as confusing to me as they probably are to you 😭

No worries. I don't know if you can make some feedback to someone at Microsoft since the first message was misleading by adding brackets to the command syntax. 😛

Ooooh actually brackets meant optional argument... Well, OK... So I think the first message should provide examples like the second one.

@jameslamb jameslamb merged commit f5dd320 into microsoft:master Oct 11, 2022
@jameslamb
Copy link
Collaborator

Thanks again @Remy-Luciani ! Hope whatever benchmarking you're working on (that led you to this feature) goes well!

We'd love to have you come back and contribute any time 👋

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants