示例#1
0
 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
示例#2
0
 def forward(self, tensor):
     rsi_ts = talib_func.rsi(tensor, timeperiod=self.timeperiod).squeeze(-1)
     return rsi_ts / 100 - 0.5