Skip to content

Instantly share code, notes, and snippets.

@clementpoiret
Created February 9, 2020 17:57
Show Gist options
  • Save clementpoiret/f1e3a568121e5947d537936ea6602d55 to your computer and use it in GitHub Desktop.
Save clementpoiret/f1e3a568121e5947d537936ea6602d55 to your computer and use it in GitHub Desktop.
# Prediction
observation = np.array(1).reshape(-1,1)
y_pred = model.predict(observation)
y_truth = gradient * observation + w0
print("Prediction : {}\nTruth : {}".format(y_pred, y_truth))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment