# Bounds error for MINST training

**URL:** <https://discourse.julialang.org/t/bounds-error-for-minst-training/79296>\
**Category:** Pluto\
**Created:** [April 10, 2022, 11:40am UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296 "2022-04-10T11:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fergaloc](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fergaloc](https://discourse.julialang.org/u/Fergaloc)\
**Post date:** [April 10, 2022, 11:40am UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296/1 "2022-04-10T11:40:12Z")

</div>

Hi I am new to Julia Pluto and was wondering if you could help. I have a bounds error and not sure what would be causing this issue, I understand what a bounds issue is I’m just not sure what is causing it. any help would be really apperciated. Thanks for any help!

 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/b/6ba9303ece26afa77081412df79d16640d2564d9.png)

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [April 10, 2022, 12:16pm UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296/2 "2022-04-10T12:16:07Z")

</div>

Your array has 3 dimensions and you’re trying to access it with 4.

You haven’t included all of the error message but I suppose it is train\_x as that has 4 dimensions in your snippet.

So wherever that is assigned is where your problem might lie.

I would advise reading this advice

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![Fergaloc](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fergaloc](https://discourse.julialang.org/u/Fergaloc)\
**Post date:** [April 10, 2022, 2:47pm UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296/3 "2022-04-10T14:47:20Z")

</div>

Thanks very much for the help that fixed my issue!
