Doubt in filters

how are the values of each element in filter array determined ?

Hey @ishabehera, the magical thing about CNNs is that we don’t know what the filters should look like for any given problem. The CNN works out what each filter should look like automatically. This is done through the backpropagation procedure. Without getting heavy into the math of it all, essentially every time a training example (or a batch of examples) goes through the network, the values inside each filter get updated by some small amount. This small amount is determined using the derivatives of a loss function. As each step of the training procedure is completed, the values inside each filter (if all goes well!) slowly converge towards a value that minimises the loss function, thereby producing the best quality predictions.

NOTE: Initially the values of filters are taken randomly.

I hope this resolves your doubt !
Please mark the doubt as resolved in your doubts section :slight_smile:
Happy Learning !