Doubt regarding class for mp and perceptron

i am getting error in class for both mp neuron and perceptron

TypeError: model() missing 1 required positional argument: ‘x’

can you share the code snippet?

class mpneuron:

def __init__(self):

self.b= None

def model(self,x):

return (sum(x)>=self.b)

def predict(self,X):

Y=\[\]    

for x in X:

  result=self.model()

  Y.append(result)

return np.array(Y)

def fit(self,X,Y):

 accuracy={}

 for b in range(X.shape\[1\]+1):

   self.b=b

   Y\_pred=self.predict(X)

   accuracy=accuracy\_score(Y\_pred,Y)

 best\_b=max(accuracy,key=accuracy.get)

 print('optimal value of b',best\_b)

 print('highest accuracy',accuracy\[best\_b\])

class Perceptron:

def __init__(self):

self.w=None

self.b=None

def model(self,x):

return 1 if (np.dot(self.w,x)>=self.b) else 0

def predict(self,X):

Y=\[\]

for x in X:

  result=self.model(x)

  Y.append(result)

return np.array(Y)

def fit(self,X,Y):

self.w=np.ones(X.shape(1))

self.b=0

for x,y in zip(X,Y):

  Y\_pred=self.model(x)

  if y==1 and Y\_pred==0:

    self.w=self.w+x

    self.b=self.b+1

  elif y==0 and Y-pred==1:

    self.w=self.w-x

    self.b=self.b-1

Hi sairam, on which line is the error occuring?