Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A  Test SVM Model

Since SVM model is from scikit-learn, we test it by checking if it has the same
result as the SVC model in scikit-learn on iris dataset.
 N/A unittest numpy.testing assert_array_equal sklearn datasets sklearn.cross_validation train_test_split sklearn.svm SVC libact.base.dataset Dataset libact.models SVM SVMIrisTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A iris N/A N/A datasets load_iris N/A X N/A iris data N/A y N/A iris target N/A N/A N/A self X_train N/A self X_test N/A self y_train N/A self y_test N/A train_test_split X y test_size 0.3 random_state 1126 N/A test_SVM N/A N/A self N/A N/A N/A svc_clf N/A SVC N/A N/A N/A svc_clf fit N/A self X_train N/A self y_train N/A svm N/A SVM N/A N/A N/A svm train N/A Dataset N/A self X_train N/A self y_train N/A N/A assert_array_equal N/A N/A svc_clf predict N/A self X_train N/A N/A svm predict N/A self X_train N/A N/A assert_array_equal N/A N/A svc_clf predict N/A self X_test N/A N/A svm predict N/A self X_test N/A N/A N/A self assertEqual N/A N/A svc_clf score N/A self X_train N/A self y_train N/A N/A svm score N/A Dataset N/A self X_train N/A self y_train N/A N/A N/A self assertEqual N/A N/A svc_clf score N/A self X_test N/A self y_test N/A N/A svm score N/A Dataset N/A self X_test N/A self y_test N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main