Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareNotEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Num For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num body For NameStore Call NameLoad BinOpAdd NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMult BinOpPow Call NameLoad NameLoad NameLoad BinOpPow Call NameLoad NameLoad BinOpSub NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameLoad Return Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpSub NameLoad Call NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad BinOpMult NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpSub NameLoad Call NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad BinOpMult NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpSub NameLoad Call NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad BinOpMult NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Num For NameStore Call NameLoad Num Num body For NameStore Call NameLoad Num Num body Assign NameStore BinOpAdd BinOpAdd BinOpSub BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpMult BinOpMult Num NameLoad NameLoad BinOpMult BinOpMult Num NameLoad NameLoad BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body For NameStore Call NameLoad Num Num body Assign NameStore BinOpAdd BinOpAdd BinOpSub BinOpAdd BinOpAdd Num BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpMult BinOpMult Num NameLoad NameLoad BinOpMult BinOpMult Num NameLoad NameLoad BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list decorator_list
N/A pyvision.vector.VectorClassifier VectorClassifier TYPE_REGRESSION numpy array dot numpy.linalg lstsq Polynomial2D N/A VectorClassifier N/A __init__ N/A N/A self order N/A 2 kwargs N/A N/A 
        This class fits a polynomial to a function of 2 variables.
         N/A N/A self order order N/A N/A self x None N/A N/A N/A VectorClassifier __init__ self TYPE_REGRESSION kwargs N/A trainClassifer N/A N/A self labels vectors ilog N/A None N/A N/A 
        Train the polynomial.  Do not call this function
        manually, instead call the train function on the super
        class.
         N/A matrix N/A N/A each vectors N/A N/A N/A N/A len each 2 N/A N/A N/A ValueError N/A ERROR: Vector length=%d.  Polynomial2D only predicts for vectors of length 2. N/A len each N/A N/A x y each N/A N/A N/A matrix append N/A N/A self buildRow x y N/A matrix N/A array matrix N/A labels N/A array labels N/A N/A x resids rank s N/A lstsq matrix labels N/A N/A self x x N/A N/A self resids resids N/A N/A self rank rank N/A N/A self s s N/A N/A rank N/A N/A matrix shape N/A 1 N/A N/A WARNING: Polynomial is not fully constrained. N/A buildRow N/A N/A self x y N/A N/A N/A 
        Method for private use only.
         N/A row N/A 1.0 N/A o N/A range 1 N/A N/A self order 1 N/A N/A i N/A range N/A o 1 N/A N/A N/A N/A row append N/A N/A N/A float x i N/A N/A float y N/A o i N/A row N/A predictValue N/A N/A self data ilog N/A None N/A N/A 
        Method for private use only.  Call super class predict.
         N/A N/A N/A len data 2 N/A N/A N/A ValueError Polynomial2D only predicts for vectors of length 2. N/A N/A x y data N/A N/A dot N/A self x N/A N/A self buildRow x y N/A N/A N/A unittest _PolyTest N/A N/A unittest TestCase N/A test_buildrow N/A N/A self N/A N/A N/A poly N/A Polynomial2D order 3 N/A row N/A array N/A N/A poly buildRow 2 2 N/A error N/A row N/A array N/A 1.0 2.0 2.0 4.0 4.0 4.0 8.0 8.0 8.0 8.0 N/A sse N/A N/A N/A error error sum N/A N/A N/A self assert_ N/A sse 0.001 N/A row N/A array N/A N/A poly buildRow 2 1 N/A error N/A row N/A array N/A 1.0 1.0 2.0 1.0 2.0 4.0 1.0 2.0 4.0 8.0 N/A sse N/A N/A N/A error error sum N/A N/A N/A self assert_ N/A sse 0.001 N/A row N/A array N/A N/A poly buildRow 1 2 N/A error N/A row N/A array N/A 1.0 2.0 1.0 4.0 2.0 1.0 8.0 4.0 2.0 1.0 N/A sse N/A N/A N/A error error sum N/A N/A N/A self assert_ N/A sse 0.001 N/A test_train N/A N/A self N/A N/A N/A poly N/A Polynomial2D order 2 N/A x N/A range -8 9 N/A N/A y N/A range -8 9 N/A N/A val N/A N/A N/A N/A N/A -5 N/A 3 y N/A 2 x N/A N/A 4 y y N/A N/A 2 y x N/A x x N/A N/A N/A poly addTraining val N/A x y N/A N/A N/A poly train N/A x N/A range -8 9 N/A N/A y N/A range -8 9 N/A N/A val N/A N/A N/A N/A N/A -5 N/A 3 y N/A 2 x N/A N/A 4 y y N/A N/A 2 y x N/A x x N/A pred N/A N/A poly predict N/A x y N/A N/A N/A self assertAlmostEqual val pred delta 0.0001 N/A N/A