Self is treated as a variable [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
While passing the parameters mp_neuron.fit(), it asks for a third parameter.
Can anyone explain why self is not being recognized

You haven't new a object for MPNeuron, it should be
mp_neuron = MPNeuron()

You're not instantiating the object.
mp_neuron = MPNeuron
This should be
mp_neuron = MPNeuron()

Related

How to define object in python according to this situation? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 days ago.
Improve this question
I'm rinning this GitHub code
It running well but having error in this line after trained model, and while testing to get the accuracy.
a = new_model.predict_generator(test_gen)
it says "NameError: name 'new_model' is not defined"
I want to know how to define 'new_model' before?

time data '2020-07-09T00:00:00+05:30' does not match format "yyyy-MM-dd'T'HH:mm:ssZ" [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am getting this error time data 2020-07-09T00:00:00+05:30 does not match format yyyy-MM-dd'T'HH:mm:ssZ please help
datetime.datetime.fromisoformat('2020-07-09T00:00:00+05:30')

The append method it's not correct? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
What the problem with my code ?
Please help
I tried several ide but still get same problem https://i.stack.imgur.com/KPRqA.jpg
Declare a=[] outside the for loop to get all your elements added to your list
What are you trying to do? We can't help if we don't know your end goal.
you can try putting a outside of the loop and set:
for i in range(0, x):
instead of just numbers in a parenthesis.

numpy.ndarray is object is not callable in my case [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am a new user for python and I know there are a few discussions about this; however, I still cannot fix it.
I execute my homework as the following code:
How to fix the error in my code? please advise, thanks!
Your ut variable is an array,
try to change (line 69)
u = lambda t,x : ut(t)
to
u = lambda t,x : ut[t]

can someone help me I can't get rid of that typeerror:'tuple' object is not callable [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
screenshot
I don't know how to have the right thing, like whats descriped in the picture
thank you
You're trying to invoke the tuple pos as the function pos.
Instead, you want to index the tuples instead of calling them. So use pos[row][col] instead of pos(row,col).

Categories

Resources