def forward(self, tensor): rsi_ts = talib_func.rsi(tensor, timeperiod=self.timeperiod).squeeze(-1) rsi_pct_change = tsf.pct_change(rsi_ts + 100) return rsi_pct_change
def forward(self, tensor): rsi_ts = talib_func.rsi(tensor, timeperiod=self.timeperiod).squeeze(-1) return rsi_ts / 100 - 0.5