INNER CODE UNIT · Python
_sma_slow_list
WISEPLAT/Hackathon-Finam-NN-Trade-Robot · 2_prepare_dataset_images_from_historical_data.py:72
_sma_slow_list = sma_slow[j-draw_window:j]
_closes_list = _close_in[j-draw_window:j]
# генерация картинки для обучения/теста нейросети
img = functions_nn.generate_img(_sma_fast_list, _sma_slow_list, _closes_list, draw_window)
# img.show() # показать сгенерированную картинку
_date_str = _date.strftime("%Y_%m_%d_%H_%M_%S")
_filename = f"{ticker}-{timeframe_0}-{_date_str}.png"
_path = os.path.join("NN", f"training_dataset_{timeframe_0}")
# проводим классификацию изображений
# if data.close[0] > data.close[-1]:
if _close_out[_date_out_index[_date]] > _close_out[_date_out_index[_date]-1]:
_path = os.path.join(_path, "1")
else:
_path = os.path.join(_path, "0")