pan class="o">.</span><span class="n">scaler_data_y</span> <span class="o">=</span> <span class="n">scaler_data_y</span>

        <span class="c1"># Store for training/val logs</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">logs</span> <span class="o">=</span> <span class="p">{}</span>

        <span class="c1"># The array of predicted values calculated using the training function</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">train_pre