Skip to content

Instantly share code, notes, and snippets.

@hyper-mage
hyper-mage / gist:479334dd754be68bdc7ac87768dc2645
Last active March 22, 2018 13:28
Mike's code, I added a classifier for min,max,saddle
from sympy import *
from sympy.plotting import plot3d
x, y = symbols('x y')
# This is my own helper function to evaluate a multivariate expression. Could be made more generic...
def evaluate(expression):
return expression.subs(x, center[0]).subs(y, center[1])