Module Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign SubscriptStore NameLoad ExtSlice Slice Call NameLoad SubscriptLoad NameLoad Index Num Index Num Num Assign SubscriptStore NameLoad ExtSlice Slice Call NameLoad SubscriptLoad NameLoad Index Num Index Num Num Return NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore ListComp Call NameLoad NameLoad keyword NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad ListComp Call AttributeLoad NameLoad attr Num Num comprehension NameStore NameLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore ListComp Call NameLoad NameLoad keyword NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad ListComp Call AttributeLoad NameLoad attr Num Num comprehension NameStore NameLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad keyword ListLoad Num keyword ListLoad Num Assign NameStore Call NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpMult Num Num attr Num Num Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad UnaryOpUSub AttributeLoad NameLoad attr decorator_list
N/A N/A numpy np numpy.testing assert_array_equal assert_array_almost_equal pystruct.models EdgeFeatureGraphCRF pystruct.learners NSlackSSVM pystruct.datasets generate_blocks_multinomial pystruct.utils make_grid_edges edge_list_to_features N/A N/A edge_list N/A N/A N/A edges N/A N/A np vstack edge_list N/A edge_features N/A N/A np zeros N/A N/A N/A edges shape N/A 0 2 N/A N/A edge_features N/A N/A N/A len N/A edge_list N/A 0 N/A 0 1 N/A N/A edge_features N/A N/A N/A len N/A edge_list N/A 0 N/A 1 1 N/A edge_features N/A test_multinomial_blocks_directional_simple N/A N/A N/A N/A N/A N/A X_ Y_ N/A generate_blocks_multinomial n_samples 10 noise 0.3 seed 0 N/A G N/A N/A make_grid_edges x return_lists True N/A x X_ N/A edge_features N/A N/A edge_list_to_features edge_list N/A edge_list G N/A edges N/A N/A N/A np vstack g N/A g G N/A X N/A list N/A zip N/A N/A N/A x reshape -1 3 N/A x X_ edges edge_features N/A Y N/A N/A N/A y ravel N/A y Y_ N/A crf N/A EdgeFeatureGraphCRF n_states 3 n_edge_features 2 N/A clf N/A NSlackSSVM model crf max_iter 10 C 1 check_constraints False N/A N/A N/A clf fit X Y N/A Y_pred N/A N/A clf predict X N/A N/A assert_array_equal Y Y_pred N/A test_multinomial_blocks_directional_anti_symmetric N/A N/A N/A N/A N/A N/A X_ Y_ N/A generate_blocks_multinomial n_samples 10 noise 0.3 seed 0 N/A G N/A N/A make_grid_edges x return_lists True N/A x X_ N/A edge_features N/A N/A edge_list_to_features edge_list N/A edge_list G N/A edges N/A N/A N/A np vstack g N/A g G N/A X N/A list N/A zip N/A N/A N/A x reshape -1 3 N/A x X_ edges edge_features N/A Y N/A N/A N/A y ravel N/A y Y_ N/A crf N/A EdgeFeatureGraphCRF symmetric_edge_features N/A 0 antisymmetric_edge_features N/A 1 N/A clf N/A NSlackSSVM model crf C 100 N/A N/A N/A clf fit X Y N/A Y_pred N/A N/A clf predict X N/A N/A assert_array_equal Y Y_pred N/A pairwise_params N/A N/A N/A N/A clf w N/A N/A -9 2 reshape 2 3 3 N/A sym N/A pairwise_params N/A 0 N/A antisym N/A pairwise_params N/A 1 N/A N/A assert_array_almost_equal sym N/A sym T N/A N/A assert_array_almost_equal antisym N/A N/A antisym T N/A