Giter VIP home page Giter VIP logo

Comments (6)

alpha-wavelet avatar alpha-wavelet commented on August 11, 2024 1

It worked great!

Thank you so much!

from lightgbm.net.

mjmckp avatar mjmckp commented on August 11, 2024

Would you please provide an example of what you would like to do? An easy way to do this might be to add a failing test to the test project. Thanks

from lightgbm.net.

alpha-wavelet avatar alpha-wavelet commented on August 11, 2024

Thank you for your reply.

My requirement is to update an existing model with new data (large and numerous). But after further consideration, there appears to be no support in this implementation for loading a model and using it to continue training.

Please let me know if there is a way to do it.

Thanks

from lightgbm.net.

mjmckp avatar mjmckp commented on August 11, 2024

I've added a new constructor to the trainer types to allow you to specify an existing model and a new dataset for training here: 22a5381

Please note that LightGBM does not allow the validation data set to be reset on an existing booster object, so the dataset you pass into the new constructor is required to have null for the validation dataset object.

Would you please try this out and let me know how you get on?

from lightgbm.net.

alpha-wavelet avatar alpha-wavelet commented on August 11, 2024

Thank you for the update.

On the test I am getting:

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

on the call to PInvoke.BoosterResetTrainingData() below:

public void ResetTrainingData(Dataset trainset)
{
Check.NonNull(trainset, nameof(trainset));
PInvokeException.Check(PInvoke.BoosterResetTrainingData(Handle, trainset.Handle),
nameof(PInvoke.BoosterResetTrainingData));
}

Both the Handle and the trainset.Handle look good.

Please let me know if I can assist in any way.

Thank you

from lightgbm.net.

mjmckp avatar mjmckp commented on August 11, 2024

Ok, I've found a way that works now, see changes here: 063309a

Instead of trying to load the model and reset the training data, I've created a new empty model with the new training AND validation data, and then merged in all the trees from the existing model.

from lightgbm.net.

Related Issues (4)

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.