Exercise 1 housing price

Hi everyone,
I know this question was asked befor but I cannot figure out my problem.

This is my code
def house_model(y_new):
xs = np.array([1.0,1.5,2.0,2.5,3.0,3.5,4.0],dtype=float)
ys = np.array([1.0,2.0,3.0,4.0,5.0,6.0,7.0],dtype=float)
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
model.compile(optimizer=‘sgd’, loss=‘mean_squared_error’)
model.fit(xs,xs,epochs=5000)
return model.predict(y_new)[0]

prediction = house_model([7.0])
prediction = prediction * 100
print(prediction)

My result is [699.99915]
but still I get the message: “Your result differs with the reference solution for more than allowed 0.1 tolerance. Please try again!”

Maybe someone can help me with that problem
Greetings
Johanna

Hi @johanna_h,
you pass xs twice, instead than ys.

oh … thanks… that’s a really stupid mistake