Getting error with my keras training model [closed]
up vote
-4
down vote
favorite
{
model = Sequential()
model.add(Convolution3D(nb_filters[0],nb_depth=nb_conv[0], nb_row=nb_conv[0], nb_col=nb_conv[0]
, input_shape=(1, img_rows, img_cols, patch_size)
, activation='relu'))
model.add(MaxPooling3D(pool_size=(nb_pool[0], nb_pool[0], nb_pool[0])))
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(128, init='normal', activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(nb_classes,init='normal'))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='RMSprop')
}
python tensorflow keras conv-neural-network
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
closed as unclear what you're asking by JBL, Matias Valdenegro, desertnaut, lagom, Nic3500 Nov 22 at 3:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-4
down vote
favorite
{
model = Sequential()
model.add(Convolution3D(nb_filters[0],nb_depth=nb_conv[0], nb_row=nb_conv[0], nb_col=nb_conv[0]
, input_shape=(1, img_rows, img_cols, patch_size)
, activation='relu'))
model.add(MaxPooling3D(pool_size=(nb_pool[0], nb_pool[0], nb_pool[0])))
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(128, init='normal', activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(nb_classes,init='normal'))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='RMSprop')
}
python tensorflow keras conv-neural-network
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
closed as unclear what you're asking by JBL, Matias Valdenegro, desertnaut, lagom, Nic3500 Nov 22 at 3:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
where is the error happening?Convolution3D
? It's not defined. There is no keyword arg e.gkernel_size=500
. Either specify that, or the second argument toConvoution3D
needs to be without a keyword e.g just put 500
– Ian Quah
Nov 21 at 17:17
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
{
model = Sequential()
model.add(Convolution3D(nb_filters[0],nb_depth=nb_conv[0], nb_row=nb_conv[0], nb_col=nb_conv[0]
, input_shape=(1, img_rows, img_cols, patch_size)
, activation='relu'))
model.add(MaxPooling3D(pool_size=(nb_pool[0], nb_pool[0], nb_pool[0])))
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(128, init='normal', activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(nb_classes,init='normal'))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='RMSprop')
}
python tensorflow keras conv-neural-network
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
{
model = Sequential()
model.add(Convolution3D(nb_filters[0],nb_depth=nb_conv[0], nb_row=nb_conv[0], nb_col=nb_conv[0]
, input_shape=(1, img_rows, img_cols, patch_size)
, activation='relu'))
model.add(MaxPooling3D(pool_size=(nb_pool[0], nb_pool[0], nb_pool[0])))
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(128, init='normal', activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(nb_classes,init='normal'))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='RMSprop')
}
python tensorflow keras conv-neural-network
python tensorflow keras conv-neural-network
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 21 at 15:39
Graham
3,396123558
3,396123558
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 21 at 14:23


Anonymous 0001
1
1
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Anonymous 0001 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
closed as unclear what you're asking by JBL, Matias Valdenegro, desertnaut, lagom, Nic3500 Nov 22 at 3:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by JBL, Matias Valdenegro, desertnaut, lagom, Nic3500 Nov 22 at 3:02
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
where is the error happening?Convolution3D
? It's not defined. There is no keyword arg e.gkernel_size=500
. Either specify that, or the second argument toConvoution3D
needs to be without a keyword e.g just put 500
– Ian Quah
Nov 21 at 17:17
add a comment |
1
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
where is the error happening?Convolution3D
? It's not defined. There is no keyword arg e.gkernel_size=500
. Either specify that, or the second argument toConvoution3D
needs to be without a keyword e.g just put 500
– Ian Quah
Nov 21 at 17:17
1
1
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
where is the error happening?
Convolution3D
? It's not defined. There is no keyword arg e.g kernel_size=500
. Either specify that, or the second argument to Convoution3D
needs to be without a keyword e.g just put 500– Ian Quah
Nov 21 at 17:17
where is the error happening?
Convolution3D
? It's not defined. There is no keyword arg e.g kernel_size=500
. Either specify that, or the second argument to Convoution3D
needs to be without a keyword e.g just put 500– Ian Quah
Nov 21 at 17:17
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
What's the error message? Also, can you format it correctly? The first chunk is not code formatted
– Ian Quah
Nov 21 at 14:27
TypeError: __init__() missing 1 required positional argument: 'kernel_size'. Im getting this error sir. I think the kernal size have declared
– Anonymous 0001
Nov 21 at 17:05
where is the error happening?
Convolution3D
? It's not defined. There is no keyword arg e.gkernel_size=500
. Either specify that, or the second argument toConvoution3D
needs to be without a keyword e.g just put 500– Ian Quah
Nov 21 at 17:17