Image doesn't match label name

Abdelrahman_Mohamed: <p>hi all,<br>
the displayed image doesn’t match the label name ??</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/7/785c956e0c30fc2718aac6e0786fdce816f804a5.png" data-download-href="https://discuss.pytorch.org/uploads/default/785c956e0c30fc2718aac6e0786fdce816f804a5" title="Screenshot%20from%202019-08-22%2016-53-51"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/7/785c956e0c30fc2718aac6e0786fdce816f804a5_2_690x197.png" alt="Screenshot%20from%202019-08-22%2016-53-51" data-base62-sha1="haLEGcdGXsQzeFmoYp4Ca3rPFZ3" width="690" height="197" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/7/785c956e0c30fc2718aac6e0786fdce816f804a5_2_690x197.png, https://discuss.pytorch.org/uploads/default/optimized/2X/7/785c956e0c30fc2718aac6e0786fdce816f804a5_2_1035x295.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/2X/7/785c956e0c30fc2718aac6e0786fdce816f804a5_2_1380x394.png 2x" data-dominant-color="D0EBD7"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot%20from%202019-08-22%2016-53-51</span><span class="informations">1521×436 94.5 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>thanks in advance</p>

alex.veuthey: <p>Looks like your <code>X_train</code> and <code>y_train</code> are not aligned properly… Could you share more code?</p>

Abdelrahman_Mohamed: <p>thank you for reply<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/2/21f682182a5f5c26580f6873b89a56a75ee4dffb.png" data-download-href="https://discuss.pytorch.org/uploads/default/21f682182a5f5c26580f6873b89a56a75ee4dffb" title="Screenshot%20from%202019-08-22%2017-17-30"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/2/21f682182a5f5c26580f6873b89a56a75ee4dffb_2_690x329.png" alt="Screenshot%20from%202019-08-22%2017-17-30" data-base62-sha1="4QrTFoVJSqzb49yDNpAue7nxvmz" width="690" height="329" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/2/21f682182a5f5c26580f6873b89a56a75ee4dffb_2_690x329.png, https://discuss.pytorch.org/uploads/default/optimized/2X/2/21f682182a5f5c26580f6873b89a56a75ee4dffb_2_1035x493.png 1.5x, https://discuss.pytorch.org/uploads/default/original/2X/2/21f682182a5f5c26580f6873b89a56a75ee4dffb.png 2x" data-dominant-color="F4F4F4"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot%20from%202019-08-22%2017-17-30</span><span class="informations">1370×654 68.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

alex.veuthey: <p>That looks alright to me… Could you display images as in the original post but directly with <code>x</code> and <code>y</code> rather than <code>X_train</code> and <code>y_train</code> ? The data could be misaligned before the sklearn split.</p>

Abdelrahman_Mohamed: <p>yes you are alright, x and y not aligned properly in the original data</p>