diff model_validation.xml @ 11:e4ab6b0bdf37 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit b1e5fa3170484d2cc3396f2abe99bb8cfcfa9c65
author bgruening
date Tue, 07 Aug 2018 05:48:38 -0400
parents c6b3efcba7bd
children 2c1851992069
line wrap: on
line diff
--- a/model_validation.xml	Sat Aug 04 17:37:30 2018 -0400
+++ b/model_validation.xml	Tue Aug 07 05:48:38 2018 -0400
@@ -18,6 +18,7 @@
 import sys
 import json
 import pandas
+import re
 import ast
 import pickle
 import numpy as np
@@ -28,6 +29,8 @@
 @COLUMNS_FUNCTION@
 @GET_ESTIMATOR_FUNCTION@
 @FEATURE_SELECTOR_FUNCTION@
+@SAFE_EVAL_FUNCTION@
+@GET_CV_FUNCTION@
 
 
 input_json_path = sys.argv[1]
@@ -70,6 +73,7 @@
 y=y.ravel()
 
 options = params["model_validation_functions"]["options"]
+options['cv'] = get_cv( options['cv'] )
 if 'scoring' in options and options['scoring'] == '':
     options['scoring'] = None
 if 'pre_dispatch' in options and options['pre_dispatch'] == '':