reset password
Author Message
306264301
Posts: 28
Posted 15:35 Dec 02, 2019 |

(b) I already have a list of arrays with 64 elements, I'm having trouble understanding on how to put it, in a feature matrix with  64 columns.

mpourhoma
Posts: 39
Posted 15:42 Dec 02, 2019 |

Each image has 64 pixels. Each pixel is a feature, so we have total 64 features for each image that should be put in one row of the feature matrix.

So, the total number of rows in your feature matrix is equal to the number of images (each row for an image), and the total number of columns in your feature matrix is equal to the number of pixels (64).

 

306264301
Posts: 28
Posted 15:44 Dec 02, 2019 |

I'm stuck in arranging the columns.

mpourhoma
Posts: 39
Posted 15:53 Dec 02, 2019 |

If you have a list of arrays with 64 elements (64 pixels), then you only have to concatenate them in order as rows of a pandas dataframe. You can also make a dataframe and add rows one by one.

306264301
Posts: 28
Posted 15:55 Dec 02, 2019 |

Thanks.