Reading the excellent tutorial by @jjallaire on time series forecasting with RNN (which is much better than most of the treatments of this topic I found on other blogs! The Tensorflow for R Blog has become one of my favorites), I found the following operator:
c(samples, targets) %<-% val_gen()
This is one of the few Python treats I really miss in R - the tuple unpacking (also known as multiple assignment). Do you know which package it comes from? The code snippet only imports keras
, so it's surely there, but I wonder if it's defined in other packages too - it seems a bit pointless to import a DL library if I just want to use multiple assignment in a function which has nothing to do with DL. I had a look at keras
dependencies, but according to the CRAN page it doesn't have any (only reverse dependencies/suggests).