Hello everyone!
I have just began working on the first assignment.
But there is an error when I run the utils validation for the base_model.
The defined formula runs fine, but the utils shows an error.
I am only changing part of the code that says # YOUR CODE HERE, and I see no problem with the way the base was built, could someone assist me?
How can I get guidance If I cannot post the code?
@Arttess07
please click on my name and then message me the screenshot of the codes which gave the above error.
Regards
DP
@Arttess07
Based the below description from the base model grade function
# def base_model(inputs):
# # connect a Dense layer with 128 neurons and a relu activation
# x = # YOUR CODE HERE
# # connect another Dense layer with 128 neurons and a relu activation
# x = # YOUR CODE HERE
# return x
You were suppose to only mention the dense layers, but you have included an input shape layer, the reason behind the error encountered. You don’t require that x= input shape
if you see here where it mentions #Your code here is where the two code lines was required. Also make sure to mention the inputs in the first dense layer.
Regards
DP
I added the input shape in the first Dense layer, but the same error shows were it says no shape.
Also I tried to make the shape the lenght of the columns from the input, but that only says that TensorFlow has no attribute under columns.
Why those this still show an error?
image removed by mentor as posting codes is against community guidelines and violation of code of conduct. Repeating to ignore following the guidelines can result into flagging your post. If mentor wants to see your code, they will ask you to send them by personal DM
please don’t post code on public post thread. i mentioned to only add inputs and not input shape. you just require to use (inputs)
make sure to read the responses carefully where I mentioned where you need to use inputs and not input shape.
Hello DP,
Sorry for the trouble, I am new at this.
I have passed this section, thanks.
1 Like