tensortrade-org / tensortrade

An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.
https://discord.gg/ZZ7BGWh
Apache License 2.0
4.45k stars 1.01k forks source link

AttributeError: 'IterableStream' object has no attribute 'rolling' #448

Closed celeboom closed 1 year ago

celeboom commented 1 year ago

python 3.7 tensortrade version >>> tensortrade.version '1.0.3'

when calling Stream.diff() or Stream.rolling(), error accurs. code is below:

from tensortrade.feed import Stream import numpy as np p=Stream.source([0,1,2,3,4]) p.diff() Traceback (most recent call last): File "", line 1, in AttributeError: 'IterableStream' object has no attribute 'diff'

from tensortrade.feed.core import Stream p=Stream.source([0,1,2,3,4]) p.diff() Traceback (most recent call last): File "", line 1, in AttributeError: 'IterableStream' object has no attribute 'diff' p.rolling(1) Traceback (most recent call last): File "", line 1, in AttributeError: 'IterableStream' object has no attribute 'rolling'