File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import io
22import os
33import requests
4- import arff
54import warnings
5+
6+ import arff
67import xmltodict
78
89from . import config
Original file line number Diff line number Diff line change 11"""
22Stores module level information like the API key, cache directory and the server.
33"""
4+ import logging
45import os
56import sys
6- import logging
7+
78
89logger = logging .getLogger (__name__ )
910logging .basicConfig (
Original file line number Diff line number Diff line change 99
1010import numpy as np
1111import scipy .sparse
12+ from six .moves import cPickle as pickle
1213import xmltodict
1314
1415from .data_feature import OpenMLDataFeature
1516from ..exceptions import PyOpenMLError
16-
17- if sys .version_info [0 ] >= 3 :
18- import pickle
19- else :
20- try :
21- import cPickle as pickle
22- except :
23- import pickle
24-
25-
2617from .._api_calls import _perform_api_call
2718
2819logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1+ from collections import OrderedDict
12import io
23import os
34import re
45import shutil
5- from collections import OrderedDict
6+
67import xmltodict
8+
79from .dataset import OpenMLDataset
810from ..exceptions import OpenMLCacheException
911from .. import config
Original file line number Diff line number Diff line change 1+ from collections import OrderedDict
2+
13import openml
24import xmltodict
3- import copy
45
5- from collections import OrderedDict
66from .setup import OpenMLSetup , OpenMLParameter
77
8+
89def setup_exists (downloaded_flow , sklearn_model ):
910 '''
1011 Checks whether a flow / hyperparameter configuration already exists on the server
Original file line number Diff line number Diff line change 1+ from collections import OrderedDict
12import io
2- import os
33import re
4- from collections import OrderedDict
4+ import os
5+
56import xmltodict
67
78from ..exceptions import OpenMLCacheException
Original file line number Diff line number Diff line change 11from collections import namedtuple , OrderedDict
22import os
33import sys
4+
45import numpy as np
56import scipy .io .arff
6-
7- if sys .version_info [0 ] > 3 :
8- import pickle
9- else :
10- try :
11- import cPickle as pickle
12- except :
13- import pickle
7+ from six .moves import cPickle as pickle
148
159
1610Split = namedtuple ("Split" , ["train" , "test" ])
Original file line number Diff line number Diff line change 11import hashlib
22import inspect
33import os
4- import time
54import shutil
5+ import time
66import unittest
7+
78import openml
89
910
You can’t perform that action at this time.
0 commit comments