What is Flatten used for?
Posted 7 months, 1 week agoIn Artificial Intelligence (Machine Learning/Neural Networks/Deep Learning) we follow different types of processes on data before upcoming steps. We, humans, understand data in different ways, machines understand the same data in their own way. If we consider arrays, they've arrays for one as well as multi-dimensions, etc. style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="7237412877">
So, when we provide machines with data we have to process initial data in such a way that they can grasp it and use it in further processing.
Flattening is one such process that converts your two-dimensional array data into a single or one dimension. Suppose our images are sets of 28 x 28 in dimensions, and we want to treat them as a series of numeric values we can perform flattening. style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="3299550751">
Refer AI and Machine Learning for Coders by Laurence Moroney for more information.
style="display:block; text-align:center;"data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4414117620201366"
data-ad-slot="3445469534">