<s> from discomll import dataset <EOL> from discomll . classification import linear_svm <EOL> train = dataset . Data ( <EOL> data_tag = [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> data_type = "<STR_LIT>" , <EOL> generate_urls = True , <EOL> X_indices = range ( <NUM_LIT:1> , <NUM_LIT> ) , <EOL> id_index = <NUM_LIT:0> , <EOL> y_index = <NUM_LIT> , <EOL> X_meta = [ "<STR_LIT:c>" for i in range ( <NUM_LIT:1> , <NUM_LIT> ) ] , <EOL> y_map = [ "<STR_LIT:R>" , "<STR_LIT:M>" ] , <EOL> delimiter = "<STR_LIT:U+002C>" ) <EOL> test = dataset . Data ( <EOL> data_tag = [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> data_type = "<STR_LIT>" , <EOL> generate_urls = True , <EOL> X_indices = range ( <NUM_LIT:1> , <NUM_LIT> ) , <EOL> id_index = <NUM_LIT:0> , <EOL> y_index = <NUM_LIT> , <EOL> X_meta = [ "<STR_LIT:c>" for i in range ( <NUM_LIT:1> , <NUM_LIT> ) ] , <EOL> y_map = [ "<STR_LIT:R>" , "<STR_LIT:M>" ] , <EOL> delimiter = "<STR_LIT:U+002C>" ) <EOL> fit_model = linear_svm . fit ( train ) <EOL> predictions = linear_svm . predict ( test , fit_model ) <EOL> print predictions </s>
