Skip to content

Instantly share code, notes, and snippets.

@Pythonista7
Last active October 2, 2021 02:54
Show Gist options
  • Save Pythonista7/de6e176df9150191101d7748c5d56f92 to your computer and use it in GitHub Desktop.
Save Pythonista7/de6e176df9150191101d7748c5d56f92 to your computer and use it in GitHub Desktop.
def model(X):
ŷ = processing(X)
return ŷ
def doML(X,y):
while(!ModeIsGood):
predicted = model(X)
error = minimize(predicted - y)
if( almostEquals(predicted , y) ):
ModeIsGood = true
break
else:
minimize(error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment