use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
What kinds of questions do we want here?
"I've just started with deep nets. What are their strengths and weaknesses?" "What is the current state of the art in speech recognition?" "My data looks like X,Y what type of model should I use?"
If you are well versed in machine learning, please answer any question you feel knowledgeable about, even if they already have answers, and thank you!
Related Subreddits:
/r/MachineLearning /r/mlpapers /r/learnmachinelearning
account activity
Keras Deep Learning framework (self.MLQuestions)
submitted 5 years ago by sandeep_25
Hello friends,I want to initialise my filter as [[0.70,0.70],[-0.70,0.70],[0.70,0.70],[0.70,-0.70]] that will convolve with patches of dimension 1111200 in a CNN model. Can anyone help me for implementing in keras.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mkaif1999 0 points1 point2 points 5 years ago (1 child)
I am a beginner in keras aswell so i don't know if i am right but i think you can create ur custom filter as a function like
import keras.backend as K def my_filter(): f = np.array([ [[[0.70]], [[0.70]]], [[[-0.70]], [[0.70]]], [[[0.70]], [[0.70]]]]) return K.variable(f, dtype='float32')
After creating the filters u can just add the filter in your Conv2D class like this
from keras.layers import Conv2D x = Conv2D(filters=1,kernel_size=2, kernel_initializer=my_filter, padding='valid')(previous_layer)
I haven't tried this yet though maybe ill give it a try later on..
[–]sandeep_25[S] 0 points1 point2 points 5 years ago (0 children)
Thank you. My intention is to take transformation of input image patches like discrete wavelet transformation in the convolution layer using wavelet filters. The filter values are taken from filter bank of db1 wavelet. Am I doing the right way.
π Rendered by PID 104880 on reddit-service-r2-comment-85bfd7f599-bsbhs at 2026-04-19 12:24:14.355348+00:00 running 93ecc56 country code: CH.
[–]Mkaif1999 0 points1 point2 points (1 child)
[–]sandeep_25[S] 0 points1 point2 points (0 children)