Code Monkey home page Code Monkey logo

Comments (5)

takuseno avatar takuseno commented on June 11, 2024 1

@NicholasCL1994 Thanks for the issue and sorry for the late response. Currently, it's not directly supported. However, you can create a custom logger to achieve your goal.

References are here:

from d3rlpy.

takuseno avatar takuseno commented on June 11, 2024 1

Sorry for being late to respond. Recently, logging_strategy option has been added to fit method. If you do as follows, you can save metrics every steps:

import d3rlpy
from d3rlpy.constants import LoggingStrategy

dqn = d3rlpy.algos.DQNConfig.create()
dqn.fit(..., logging_strategy=LoggingStrategy.STEPS, logging_steps=1)

Please make sure that you install v2.4.0 package or latest source code.

from d3rlpy.

NicholasCL1994 avatar NicholasCL1994 commented on June 11, 2024 1

Thanks! I really appreciate all the help, @takuseno !

from d3rlpy.

NicholasCL1994 avatar NicholasCL1994 commented on June 11, 2024

Thanks for the reply! I have tried to use the custom logger but in fitter(), the function commit(), which as I understood correctly saves the metrics into the csv file, is only called in the outside loop (for the epochs) and not inside the training loop. So I don't see how a custom logger would allow me to save the metrics at every training step. Sorry if I missed something.

from d3rlpy.

takuseno avatar takuseno commented on June 11, 2024

Feel free to reopen this issue if there is any further discussion.

from d3rlpy.

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.