AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

China_A_share_market_tushare.py run incorrect

Offen
#91 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
1.2k
Forks
435
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I meet some question when I run China_A_share_market_tushare.py :
Traceback (most recent call last):

File "D:\anaconda3\envs\FinRL\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec
exec(code, globals, locals)

File "d:\mypython\ai4finance foundation\finrl-meta-master\china_a_share_market_baostock0.py", line 384, in
trading()

File "d:\mypython\ai4finance foundation\finrl-meta-master\china_a_share_market_baostock0.py", line 317, in trading
plotter.plot()

File "D:\mypython\AI4Finance Foundation\FinRL-Meta-master\meta\data_processors\baostock.py", line 184, in plot
plt.plot(time, baseline, label=baseline_label, color="grey")

File "D:\anaconda3\envs\FinRL\lib\site-packages\matplotlib\pyplot.py", line 2769, in plot
**({"data": data} if data is not None else {}), **kwargs)

File "D:\anaconda3\envs\FinRL\lib\site-packages\matplotlib\axes\_axes.py", line 1635, in plot
lines = [*self._get_lines(*args, data=data, **kwargs)]

File "D:\anaconda3\envs\FinRL\lib\site-packages\matplotlib\axes\_base.py", line 312, in __call__
yield from self._plot_args(this, kwargs)

File "D:\anaconda3\envs\FinRL\lib\site-packages\matplotlib\axes\_base.py", line 498, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "

ValueError: x and y must have same first dimension, but have shapes (128,) and (129,)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.