comparison model_validation.xml @ 3:424d8d21744d draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
author bgruening
date Tue, 05 Jun 2018 06:48:01 -0400
parents dd502cb0d567
children 60b8a683ba99
comparison
equal deleted inserted replaced
2:dd502cb0d567 3:424d8d21744d
33 params = json.load(open(input_json_path, "r")) 33 params = json.load(open(input_json_path, "r"))
34 34
35 input_type = params["input_options"]["selected_input"] 35 input_type = params["input_options"]["selected_input"]
36 if input_type=="tabular": 36 if input_type=="tabular":
37 header = 'infer' if params["input_options"]["header1"] else None 37 header = 'infer' if params["input_options"]["header1"] else None
38 column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"]
39 if column_option == "by_index_number":
40 c = params["input_options"]["column_selector_options_1"]["col1"]
41 else:
42 c = None
38 X = read_columns( 43 X = read_columns(
39 "$input_options.infile1", 44 "$input_options.infile1",
40 "$input_options.col1", 45 c = c,
46 c_option = column_option,
41 sep='\t', 47 sep='\t',
42 header=header, 48 header=header,
43 parse_dates=True 49 parse_dates=True
44 ) 50 )
45 else: 51 else:
46 X = mmread(open("$input_options.infile1", 'r')) 52 X = mmread(open("$input_options.infile1", 'r'))
47 53
48 header = 'infer' if params["input_options"]["header2"] else None 54 header = 'infer' if params["input_options"]["header2"] else None
55 column_option = params["input_options"]["column_selector_options_2"]["selected_column_selector_option2"]
56 if column_option == "by_index_number":
57 c = params["input_options"]["column_selector_options_2"]["col2"]
58 else:
59 c = None
49 y = read_columns( 60 y = read_columns(
50 "$input_options.infile2", 61 "$input_options.infile2",
51 "$input_options.col2", 62 c = c,
63 c_option = column_option,
52 sep='\t', 64 sep='\t',
53 header=header, 65 header=header,
54 parse_dates=True 66 parse_dates=True
55 ) 67 )
56 y=y.ravel() 68 y=y.ravel()
316 <param name="selected_function" value="validation_curve"/> 328 <param name="selected_function" value="validation_curve"/>
317 <param name="estimator" value="svm.SVC(kernel=&quot;linear&quot;)"/> 329 <param name="estimator" value="svm.SVC(kernel=&quot;linear&quot;)"/>
318 <param name="has_estimator" value="yes"/> 330 <param name="has_estimator" value="yes"/>
319 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> 331 <param name="infile1" value="regression_X.tabular" ftype="tabular"/>
320 <param name="header1" value="true" /> 332 <param name="header1" value="true" />
321 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> 333 <param name="selected_column_selector_option" value="all_columns"/>
322 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> 334 <param name="infile2" value="regression_y.tabular" ftype="tabular"/>
323 <param name="header2" value="true" /> 335 <param name="header2" value="true" />
324 <param name="col2" value="1"/> 336 <param name="col2" value="1"/>
325 <param name="return_type" value="test_scores"/> 337 <param name="return_type" value="test_scores"/>
326 <output name="outfile" file="mv_result06.tabular"/> 338 <output name="outfile" file="mv_result06.tabular"/>
334 <param name="has_estimator" value="yes"/> 346 <param name="has_estimator" value="yes"/>
335 <param name="param_grid" value="[{'feature_selector__k': [3, 7], 'estimator__C': [1, 100]}]"/> 347 <param name="param_grid" value="[{'feature_selector__k': [3, 7], 'estimator__C': [1, 100]}]"/>
336 <param name="return_type" value="best_score_"/> 348 <param name="return_type" value="best_score_"/>
337 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> 349 <param name="infile1" value="regression_X.tabular" ftype="tabular"/>
338 <param name="header1" value="true" /> 350 <param name="header1" value="true" />
339 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> 351 <param name="selected_column_selector_option" value="all_columns"/>
340 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> 352 <param name="infile2" value="regression_y.tabular" ftype="tabular"/>
341 <param name="header2" value="true" /> 353 <param name="header2" value="true" />
342 <param name="col2" value="1"/> 354 <param name="selected_column_selector_option2" value="all_columns"/>
343 <output name="outfile" file="mv_result07.tabular"/> 355 <output name="outfile" file="mv_result07.tabular"/>
344 </test> 356 </test>
345 </tests> 357 </tests>
346 <help> 358 <help>
347 <![CDATA[ 359 <![CDATA[