Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias Assign NameStore SubscriptLoad Call NameLoad ListLoad Str Str Str Index Num FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Num Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad keyword Num 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 Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad keyword Num 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 Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad 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 If BoolOpOr UnaryOpNot Call NameLoad ListLoad Str UnaryOpNot Call NameLoad ListLoad Str body Return Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Num keyword Str Assign NameStore Call NameLoad NameLoad keyword Num Assign NameStore Call NameLoad NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad keyword Num keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad 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 Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num 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 Assign NameStore Call NameLoad keyword NameLoad 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 Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad keyword ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list
N/A N/A numpy np tempfile mkstemp sklearn.datasets load_iris sklearn.cross_validation train_test_split pystruct.models GraphCRF pystruct.learners NSlackSSVM pystruct.utils SaveLogger pystruct.datasets generate_blocks_multinomial generate_blocks generate_checker generate_checker_multinomial pystruct.models GridCRF DirectionalGridCRF pystruct.inference get_installed nose.tools assert_equal assert_less assert_greater numpy.testing assert_array_equal nose.tools assert_true N/A inference_method N/A N/A get_installed N/A qpbo ad3 lp N/A 0 test_n_slack_svm_as_crf_pickling N/A N/A N/A N/A N/A iris N/A load_iris N/A N/A X y N/A N/A iris data N/A iris target N/A X_ N/A N/A N/A N/A np atleast_2d x N/A N/A np empty N/A 0 2 dtype N/A np int N/A x X N/A Y N/A N/A y reshape -1 1 N/A N/A X_train X_test y_train y_test N/A train_test_split X_ Y random_state 1 N/A N/A _ file_name N/A mkstemp N/A pbl N/A GraphCRF n_features 4 n_states 3 inference_method inference_method N/A logger N/A SaveLogger file_name N/A svm N/A NSlackSSVM pbl C 100 n_jobs 1 logger logger N/A N/A N/A svm fit X_train y_train N/A N/A assert_less 0.97 N/A N/A svm score X_test y_test N/A N/A assert_less 0.97 N/A N/A N/A N/A logger load score X_test y_test N/A test_multinomial_blocks_cutting_plane N/A N/A N/A N/A N/A N/A X Y N/A generate_blocks_multinomial n_samples 40 noise 0.5 seed 0 N/A n_labels N/A len N/A N/A np unique Y N/A crf N/A GridCRF n_states n_labels inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 100 C 100 check_constraints False batch_size 1 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 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 n_labels N/A len N/A N/A np unique Y N/A crf N/A DirectionalGridCRF n_states n_labels inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 100 C 100 check_constraints True batch_size 1 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_checker_cutting_plane N/A N/A N/A N/A N/A N/A X Y N/A generate_checker_multinomial n_samples 10 noise 0.1 N/A n_labels N/A len N/A N/A np unique Y N/A crf N/A GridCRF n_states n_labels inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 20 C 100000 check_constraints True 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_switch_to_ad3 N/A N/A N/A N/A N/A N/A N/A N/A get_installed N/A qpbo N/A N/A get_installed N/A ad3 N/A N/A N/A N/A X Y N/A generate_blocks_multinomial n_samples 5 noise 1.5 seed 0 N/A crf N/A GridCRF n_states 3 inference_method qpbo N/A ssvm N/A NSlackSSVM crf max_iter 10000 N/A ssvm_with_switch N/A NSlackSSVM crf max_iter 10000 switch_to ad3 N/A N/A N/A ssvm fit X Y N/A N/A N/A ssvm_with_switch fit X Y N/A N/A assert_equal N/A N/A ssvm_with_switch model inference_method ad3 N/A N/A assert_greater N/A N/A ssvm_with_switch objective_curve_ N/A -1 N/A N/A ssvm objective_curve_ N/A -1 N/A ssvm_with_switch N/A NSlackSSVM crf max_iter 10000 switch_to ad3 tol 10 N/A N/A N/A ssvm_with_switch fit X Y N/A N/A assert_equal N/A N/A ssvm_with_switch model inference_method ad3 N/A test_binary_blocks_cutting_plane N/A N/A N/A N/A N/A N/A X Y N/A generate_blocks n_samples 5 N/A crf N/A GridCRF inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 20 C 100 check_constraints True break_on_bad 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_binary_blocks_batches_n_slack N/A N/A N/A N/A N/A N/A X Y N/A generate_blocks n_samples 5 N/A crf N/A GridCRF inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 20 batch_size 1 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 test_binary_ssvm_repellent_potentials N/A N/A N/A N/A N/A N/A X Y N/A generate_checker N/A crf N/A GridCRF inference_method inference_method N/A clf N/A NSlackSSVM model crf max_iter 10 C 100 check_constraints True 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 submodular_clf N/A NSlackSSVM model crf max_iter 10 C 100 check_constraints True negativity_constraint N/A 4 5 6 N/A N/A N/A submodular_clf fit X Y N/A Y_pred N/A N/A submodular_clf predict X N/A N/A i x N/A enumerate X N/A N/A y_pred_unaries N/A N/A crf inference x N/A N/A np array N/A 1 0 0 1 0 0 0 N/A N/A assert_array_equal y_pred_unaries N/A Y_pred N/A i N/A test_binary_ssvm_attractive_potentials N/A N/A N/A N/A N/A N/A X Y N/A generate_blocks n_samples 10 N/A crf N/A GridCRF inference_method inference_method N/A submodular_clf N/A NSlackSSVM model crf max_iter 200 C 100 check_constraints True negativity_constraint N/A 5 N/A N/A N/A submodular_clf fit X Y N/A Y_pred N/A N/A submodular_clf predict X N/A N/A assert_array_equal Y Y_pred N/A N/A assert_true N/A N/A N/A submodular_clf w N/A 5 0 N/A