Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train_and_evaluate.ipynb getting AttributeError: 'AnalysisIndicators' object has no attribute 'study' #443

Open
sanoj2021 opened this issue May 22, 2022 · 2 comments

Comments

@sanoj2021
Copy link

sanoj2021 commented May 22, 2022

System information

  • Have I written custom code (as opposed to using example directory): No
  • OS Platform and Distribution (e.g. Mac Sierra, Windows 10, Linux Ubuntu 16.04): Windows 10
  • TensorTrade version: 1.0.4.dev1
  • TensorFlow version: 2.9.0
  • Python version: 3.9

Describe the current behavior
Opening the example notebook train_and_evaluate from the examples and running the 6th cell (data = generate_features(data)
data) gives the following error: AttributeError: 'AnalysisIndicators' object has no attribute 'study'

Describe the expected behavior
No error.

Code to reproduce the issue
Please refer to the example code.

Other info / logs

AttributeError Traceback (most recent call last)
Input In [5], in <cell line: 1>()
----> 1 data = generate_features(data)
2 data

Input In [4], in generate_features(data)
84 df.ta.cores = cores
86 for strategy in strategies:
---> 87 df.ta.study(strategy, exclude=['kvo'])
89 df = df.set_index('date')
91 # Generate all default indicators from ta library

AttributeError: 'AnalysisIndicators' object has no attribute 'study'

@segatrade
Copy link

segatrade commented May 29, 2022

Got the same bug

@selentium0
Copy link

Replace 'study' with 'strategy'

for strategy in strategies:
df.ta.strategy(strategy, exclude=['kvo'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants