Coder Social home page Coder Social logo

Comments (7)

nzw0301 avatar nzw0301 commented on May 24, 2024 1

I think we can close this issue because the workaround is discussed on the lightgbm issue helpfully. Alternatively we might save the best mode as a file and update the best model's file name similarly to the shared script.

Personally I appreciate you for your minimal reproducible code and investigating the copy logics in lightgbm repo!

from optuna.

YingJie-Zhao avatar YingJie-Zhao commented on May 24, 2024

BTW,this problem has been issued at microsoft/LightGBM#6384 (comment) and currently didn't found any code related to lightgbm could cause this situation. So I think may be turning into Optuna developer's help could be better.

from optuna.

HideakiImamura avatar HideakiImamura commented on May 24, 2024

Perhaps this is due to the migration of the integration module to the optuna_integration package. We have supported backward compatibility to function without re-writing the code, but you will need to install the optuna_integration package. Could you please run pip install optuna_integration?

from optuna.

YingJie-Zhao avatar YingJie-Zhao commented on May 24, 2024

The reproducible example above was tested with both optuna 3.6.0 and optuna_integration 3.6.0 installed. So I think may be this was not about the version.

from optuna.

nzw0301 avatar nzw0301 commented on May 24, 2024

I suspect that this is lightgbm issue; when I copy model with copy.copy or copy.deepcopy, both copy models have best_iteration=-1.

from optuna.

YingJie-Zhao avatar YingJie-Zhao commented on May 24, 2024

Thanks to your reply.

I tried printing best_iteration both inside and outside the objective function, seems like the inner print works well but the outer print returns -1. See microsoft/LightGBM#6384 (comment)

from optuna.

nzw0301 avatar nzw0301 commented on May 24, 2024

Thank you for sharing it. I've left the comment on this as microsoft/LightGBM#6384 (comment).

from optuna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.