Module ImportFrom alias Import alias Import alias identifier Import alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list If CompareIsNot NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameLoad If BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Num If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr decorator_list
N/A collections Iterable N/A logging N/A numpy np N/A tensorflow tf N/A config N/A logger N/A N/A logging getLogger tensorprob BaseOptimizer N/A object N/A __init__ N/A N/A self session N/A None N/A N/A N/A self _session N/A session N/A N/A tf Session N/A minimize_impl N/A N/A self objective gradient inits bounds N/A N/A N/A NotImplementedError N/A minimize N/A N/A self variables cost gradient bounds N/A None None N/A N/A N/A N/A isinstance variables Iterable N/A N/A N/A ValueError Variables parameter is not iterable N/A v variables N/A N/A N/A N/A isinstance v N/A tf Variable N/A N/A N/A ValueError N/A N/A Parameter {} is not a tensorflow variable format v N/A inits N/A N/A N/A self _session run variables objective N/A N/A xs N/A N/A N/A feed_dict N/A k v N/A N/A k v N/A zip variables xs N/A val N/A N/A np float64 N/A N/A N/A self _session run cost feed_dict feed_dict N/A N/A N/A logger debug N/A N/A Objective: {} {} format val xs N/A val N/A N/A N/A gradient None N/A gradient_ N/A N/A xs N/A N/A N/A feed_dict N/A k v N/A N/A k v N/A zip variables xs N/A val N/A N/A np array N/A N/A N/A self _session run gradient feed_dict feed_dict N/A N/A N/A logger debug N/A N/A Gradient: {} {} format val xs N/A val N/A N/A approx_grad False N/A N/A gradient_ None N/A bounds N/A N/A min_bounds N/A N/A current bounds N/A N/A N/A lower upper current N/A N/A N/A isinstance lower N/A tf Tensor N/A isinstance upper N/A tf Tensor N/A N/A N/A NotImplementedError Specifying variable bounds to optimizers is not yet supported N/A N/A N/A lower None N/A N/A np isinf lower N/A N/A lower None N/A N/A N/A upper None N/A N/A np isinf upper N/A N/A upper None N/A N/A lower None N/A N/A lower N/A lower 1e-10 N/A N/A upper None N/A N/A upper N/A upper 1e-10 N/A N/A N/A min_bounds append N/A lower upper N/A N/A min_bounds None N/A N/A N/A self minimize_impl objective gradient_ inits min_bounds N/A session N/A N/A self N/A N/A N/A N/A self _session N/A property session N/A N/A self session N/A N/A N/A N/A self _session session N/A N/A session setter N/A