Comments (5)
@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:
- https://d3rlpy.readthedocs.io/en/v2.3.0/references/logging.html
- https://github.com/takuseno/d3rlpy/blob/master/d3rlpy/logging/file_adapter.py
from d3rlpy.
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.
Thanks! I really appreciate all the help, @takuseno !
from d3rlpy.
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.
Feel free to reopen this issue if there is any further discussion.
from d3rlpy.
Related Issues (20)
- [QUESTION] difference between evaluators and OPE ? HOT 2
- FQE support .d3 file model? HOT 4
- [BUG] Issue with CUDA Device-Side Assertion Failure During Training HOT 2
- [REQUEST] Allow dynamic neural architectures to be used HOT 2
- [Question] Is it possible to only collect image observation? HOT 3
- [BUG] error when running dt on atari HOT 2
- Issue: Creating MDPDataset from CSV file in d3rlpy HOT 2
- [QUESTION] Continously increasing loss and TD error HOT 7
- [REQUEST] NotImplementedError: "save_policy method does not support tuple observation yet." HOT 4
- [QUESTION] Adding a new algorithm to d3rlpy HOT 3
- [REQUEST] save decision transformer models as TorchScript/ONNX HOT 2
- [QUESTION] multidimensional states and actions HOT 8
- [BUG] DiscreteDecisionTransformer Inference Problem, AttributeError: 'numpy.ndarray' object has no attribute 'length' HOT 4
- [Question]Just want to make sure that the "environment" metric collected by the logger of offline RL algorithms is the result used in papers HOT 2
- d3rlpy install d4rl HOT 4
- ValueError: too many values to unpack (expected 4) when using hopper-medium-v0 environment HOT 6
- [BUG] How to continue training from a save checkpoint HOT 2
- [QUESTION] len(observation_shape) == 1 HOT 1
- [BUG] saving and loading model with custom network gives KeyError: 'custom' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3rlpy.