in:

a1 = linear_layer(X_train[0].reshape(1,1))

print(a1)

Why is only X_train[0] used, that is only one single point. Don’t we need to use both values of X_train (at least two points) to be able to do regression?

in:

a1 = linear_layer(X_train[0].reshape(1,1))

print(a1)

Why is only X_train[0] used, that is only one single point. Don’t we need to use both values of X_train (at least two points) to be able to do regression?