Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BinOpMult Num Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad NameLoad Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num Index Num Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list
N/A N/A numpy np sklearn.utils.optimize newton_cg scipy.optimize fmin_ncg sklearn.utils.testing assert_array_almost_equal test_newton_cg N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A A N/A N/A rng normal size N/A 10 10 N/A x0 N/A N/A np ones 10 func N/A N/A x N/A N/A N/A Ax N/A N/A A dot x N/A N/A 0.5 N/A N/A Ax dot Ax N/A grad N/A N/A x N/A N/A N/A N/A N/A N/A A T dot N/A N/A A dot x N/A hess N/A N/A x p N/A N/A N/A N/A N/A p dot N/A N/A N/A A T dot N/A N/A A dot N/A N/A x all N/A grad_hess N/A N/A x N/A N/A N/A N/A N/A grad x N/A N/A N/A x N/A N/A N/A N/A A T dot N/A N/A A dot x N/A N/A N/A assert_array_almost_equal N/A N/A newton_cg grad_hess func grad x0 tol 1e-10 N/A 0 N/A fmin_ncg f func x0 x0 fprime grad fhess_p hess N/A