Giter Site home page Giter Site logo

Comments (11)

takuseno avatar takuseno commented on May 20, 2024

@pstansell Hi, sorry for being late. Now eval_interval argument is available.
0d91df6

from d3rlpy.

pstansell avatar pstansell commented on May 20, 2024

@takuseno, thanks for adding eval_interval, but I can only see it available in fit_batch_online(), not in fit_online(), which is where I wanted to use it.

from d3rlpy.

takuseno avatar takuseno commented on May 20, 2024

Ah, sorry. I've added save_interval to both methods.

from d3rlpy.

pstansell avatar pstansell commented on May 20, 2024

After further experimentation, I think v0.51 already had the argument I wanted to control the rate at which model files were written, that is,

  save_interval – interval to save parameters.

I hadn't realised what it did. Sometimes I struggle to understand exactly what the fuction arguments do based on their names and descriptions. But, anyway, the problem is solved now so I will close the issue. You make changes so quickly, it's hard for me to keep up :-). Thanks very much!

from d3rlpy.

pstansell avatar pstansell commented on May 20, 2024

@takuseno, it seems that fit_online() does not allow argument eval_interval.

from d3rlpy.

takuseno avatar takuseno commented on May 20, 2024

No, fit_online does not have that option. But you can control save frequency with save_interval.

from d3rlpy.

pstansell avatar pstansell commented on May 20, 2024

But doesn't that mean that I have to save models at the same rate as metrics? Put another way, the number of lines in metric files, for example time_step.csv, will be the same as the number of output files named model_*.pt. My initial desire was to be able to save model files at a lower rate than metrics. Given the current input arguments, I'm not sure if I can do that.

from d3rlpy.

takuseno avatar takuseno commented on May 20, 2024

The saved model file name and the epoch number in metrics will match. So, if you give save_interval=2, the files and metrics will be like below.

metrics

0,xxx,yyy
1,xxx,yyy
2,xxx,yyy
3,xxx,yyy
4,xxx,yyy
.
.

model files

model_0.pt
model_2.pt
model_4.pt
.
.

from d3rlpy.

takuseno avatar takuseno commented on May 20, 2024

Oh, wait. I found my bad. I'll fix this.

logger.commit(epoch, total_step)

from d3rlpy.

takuseno avatar takuseno commented on May 20, 2024

@pstansell I've fixed this in the last commit.
b6c9b69

from d3rlpy.

pstansell avatar pstansell commented on May 20, 2024

I tested it and confirm that it's fixed now. Thanks very much.

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.