Mercurial > repos > bgruening > sklearn_nn_classifier
comparison nn_classifier.xml @ 10:e9ba818e7877 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c0a3a186966888e5787335a7628bf0a4382637e7
author | bgruening |
---|---|
date | Tue, 14 May 2019 18:09:43 -0400 |
parents | ed7b1654e841 |
children | d0efc68a3ddb |
comparison
equal
deleted
inserted
replaced
9:ed7b1654e841 | 10:e9ba818e7877 |
---|---|
17 import sys | 17 import sys |
18 import json | 18 import json |
19 import numpy as np | 19 import numpy as np |
20 import sklearn.neighbors | 20 import sklearn.neighbors |
21 import pandas | 21 import pandas |
22 import pickle | |
22 | 23 |
23 with open("$__tool_directory__/sk_whitelist.json", "r") as f: | 24 sys.path.insert(0, '$__tool_directory__') |
24 sk_whitelist = json.load(f) | 25 from utils import load_model, get_X_y |
25 exec(open("$__tool_directory__/utils.py").read(), globals()) | |
26 | 26 |
27 input_json_path = sys.argv[1] | 27 input_json_path = sys.argv[1] |
28 with open(input_json_path, "r") as param_handler: | 28 with open(input_json_path, "r") as param_handler: |
29 params = json.load(param_handler) | 29 params = json.load(param_handler) |
30 | 30 |