Giter Club home page Giter Club logo

Comments (8)

Bronzila avatar Bronzila commented on July 3, 2024 1

Nice to hear, that this could solve your issue. In the upcoming release the logging structure will anyways be adjusted since currently for every instantiation of DEHB the logs will be written to some specific file. In the upcoming release it will just be written to dehb.log and thus will be overwritten by new instatiations of DEHB (assuming that you do not adjust the output path).

from dehb.

Bronzila avatar Bronzila commented on July 3, 2024

Hey, I'm assuming you are using DEHB.run. If so, have you tried using the verbosity flag, i.e. DEHB.run(..., verbose=False). Then you should only be left with outputs regarding state saving/logging.

from dehb.

Bronzila avatar Bronzila commented on July 3, 2024

Anyways, thanks for you issue! Since the state saving logs could also fill stdout with a lot of logs, we should maybe think about adding a verbosity level for the whole DEHB class and not just the run function.

from dehb.

u3Izx9ql7vW4 avatar u3Izx9ql7vW4 commented on July 3, 2024

Hey, I'm assuming you are using DEHB.run. If so, have you tried using the verbosity flag, i.e. DEHB.run(..., verbose=False). Then you should only be left with outputs regarding state saving/logging.

Yes that's correct, verbose is set to False, but I'm getting lots of these messages to stdout.

2024-05-29 12:04:56.361 | INFO     | dehb.optimizers.dehb:reset:119 - 

RESET at 05/29/24 12:04:56 PDT


2024-05-29 12:04:56.417 | INFO     | dehb.optimizers.dehb:reset:119 - 

RESET at 05/29/24 12:04:56 PDT


2024-05-29 12:04:56.468 | INFO     | dehb.optimizers.dehb:reset:119 - 

RESET at 05/29/24 12:04:56 PDT


2024-05-29 12:04:56.519 | INFO     | dehb.optimizers.dehb:reset:119 - 

RESET at 05/29/24 12:04:56 PDT

Somewhat related is that this package appears to be accumulating lots of logs that does not get cleaned up after a run is complete. For me, dehb has accumulated almost to 20GB of log data since I've installed 4 weeks ago.

Capture d’écran 2024-05-29 à 12 18 30

^ After clearing it 2 weeks ago.

from dehb.

u3Izx9ql7vW4 avatar u3Izx9ql7vW4 commented on July 3, 2024

lots of these messages to stdout.

They appear to be coming from dehb.py:119, removing that line solved the issue for me

    def reset(self):
        self.inc_score = np.inf
        self.inc_config = None
        self.population = None
        self.fitness = None
        self.traj = []
        self.runtime = []
        self.history = []
        self.logger.info("\n\nRESET at {}\n\n".format(time.strftime("%x %X %Z")))

from dehb.

u3Izx9ql7vW4 avatar u3Izx9ql7vW4 commented on July 3, 2024

Good to know, thanks for looking into the issue and looking forward to the fix.

In the upcoming release it will just be written to dehb.log and thus will be overwritten by new instatiations of DEHB

Will this affect the ability to run multiple DEHB instances running simultaneously? In my use case, the host program optimizes many different models in parallel.

from dehb.

Neeratyoy avatar Neeratyoy commented on July 3, 2024

Will this affect the ability to run multiple DEHB instances running simultaneously?

This should not, assuming each DEHB instance is an independent optimization run since then the output_path should vary.
@Bronzila could you please correct me or add anything if required.

from dehb.

Bronzila avatar Bronzila commented on July 3, 2024

Sorry, I must have overlooked your comment @u3Izx9ql7vW4
As @Neeratyoy pointed out, as long as each DEHB instance has a unique output_path no results will be overwritten.

from dehb.

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.