Giter Club home page Giter Club logo

convlstm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

l-inda

convlstm's Issues

convlstm with luz

I've been trying to use your convlstm into a real use case and for that I'm still suffering a bit with the tuning. I wanted to properly define a learning rate first, and this can be leading me to some issues. I'm always having Inf values for the loss after a while.

This way, I wanted to use luz package to define a learning rate, which has been simply impossible, because I think the returning value of the forward method of the convlstm is a list.

Do you mind having a look and perhaps coming up with any ideas?

input_dim = 1
hidden_dims = c(64, 1)
kernel_sizes = c(3, 3)
n_layers = 2
                           
 model <- convlstm %>%
    setup(
      loss = nn_mse_loss(),
      optimizer = torch::optim_adam,
      ) %>%
    set_hparams(n_layers = n_layers,
                input_dim = input_dim,
                hidden_dims = hidden_dims,
                kernel_sizes = kernel_sizes)

  rates_and_losses <- model %>% lr_finder(
    train_dl,
    # start_lr = 1e-4,
    # end_lr = 0.5,
    verbose = TRUE
  )

The error I get is always

Error in input$size() : attempt to apply non-function

My train_dl is a bit complex to reproduce, but you'll find the same error using your dummy dataset from the blogpost https://blogs.rstudio.com/ai/posts/2020-12-17-torch-convlstm/

Thanks a lot on advance!
Huriel Reichel

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.