Giter Site home page Giter Site logo

Comments (5)

mmerce avatar mmerce commented on August 22, 2024

Yes, certainly! That was the original idea. That's why they get loaded in slots and we have a --max-batch-models flag to control the amount of models in each slot. I'll review it ASAP. Just one question. How many predictions did you test with them? Each prediction encloses a considerable amount of information too, the distribution of training data in the node, for instance. I was wondering how much of that memory is occupied by prediction information.

from bigmler.

rossmeissl avatar rossmeissl commented on August 22, 2024

@seamusabshere ping

from bigmler.

mmerce avatar mmerce commented on August 22, 2024

I had a look at the code and my impression was that the thing causing the memory raise was that all test predictions are accumulated before being combined and for big test files it certainly uses a lot of memory as we need fit the size of:

(prediction + distribution in the node + confidence + labels) * number of test cases in the file * number of models in the slot determined by --max-batch-models

all of this is added at each step of the loop, until all the the models in the ensemble contribute to it and all the predictions are combined. It could be possible to store partial results to disk, but that would slow down the computation, so maybe we could include that as an option. My impression was that models were not further referenced once they had been used, and so were garbage collectable. However, this was a while ago. I'll check it back as soon as I can finish bringing anomaly detection to bigmler. Hopefully early next week.

from bigmler.

mmerce avatar mmerce commented on August 22, 2024

I've rechecked the predictions code, and found that, although no references where pointing to the slots of models, the garbage collector was not removing them immediately after their use, so I forced that and now it looks like memory drops at every step of the loop. I've also tried to improve performance by getting rid of the files where predictions for each of the models were stored (you can get them back by using --no-fast). It would be great if you could check our lastly released bigmler 1.14.2 and see if it works for you to close this issue.

from bigmler.

mmerce avatar mmerce commented on August 22, 2024

Closing the issue. If you experience this issue again, please reopen.

from bigmler.

Related Issues (13)

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.