Sfoglia il codice sorgente

Changing the init files to not import all the libraries

ogert 3 anni fa
parent
commit
d46c2ed4e6

+ 9 - 7
cdplib/__init__.py

@@ -1,7 +1,9 @@
-from .db_handlers import *
-from .db_migration import *
-from .hyperopt import *
-from .utils import *
-from .log import *
-from .FlattenData import *
-from .Singleton_Threadsafe import *
+# from .db_handlers import *
+# from .db_migration import *
+# from .hyperopt import *
+# from .utils import *
+# from .log import *
+# from .FlattenData import *
+# from .Singleton_Threadsafe import *
+
+print("Importing CDPlib")

+ 6 - 4
cdplib/db_handlers/__init__.py

@@ -1,4 +1,6 @@
-from .MongodbHandler import *
-from .SQLHandler import *
-from .MSSQLHandler import *
-from .InfluxdbHandler import *
+# from .MongodbHandler import *
+# from .SQLHandler import *
+# from .MSSQLHandler import *
+# from .InfluxdbHandler import *
+
+print("Importing DB Handlers")

+ 5 - 2
cdplib/gridsearch/__init__.py

@@ -1,2 +1,5 @@
-from .GridSearchPipelineSelector import *
-from .space_sample import *
+# from .GridSearchPipelineSelector import *
+# from .space_sample import *
+
+
+print("Importing GridSearch classes")

+ 6 - 4
cdplib/hyperopt/__init__.py

@@ -1,4 +1,6 @@
-from .HyperoptPipelineSelection import *
-from .HyperoptPipelineSelector import *
-from .composed_space_sample import *
-from .space_sample import *
+# from .HyperoptPipelineSelection import *
+# from .HyperoptPipelineSelector import *
+# from .composed_space_sample import *
+# from .space_sample import *
+
+print("Importing Hyperopt classes")

+ 3 - 1
cdplib/hyperparameter_space_composer/__init__.py

@@ -1 +1,3 @@
-from .SpaceComposer import *
+# from .SpaceComposer import *
+
+print("Importing SpaceComposer")

+ 4 - 2
cdplib/ml_validation/__init__.py

@@ -1,2 +1,4 @@
-from .cross_validate_with_fine_tuning import *
-from .CVComposer import *
+# from .cross_validate_with_fine_tuning import *
+# from .CVComposer import *
+
+print("Importing ml_validation classes")

+ 3 - 1
cdplib/pipeline_selector/__init__.py

@@ -1 +1,3 @@
-from .PipelineSelector import *
+# from .PipelineSelector import *
+
+print("Importing PipelineSelector")

+ 3 - 2
cdplib/utils/__init__.py

@@ -1,3 +1,4 @@
-from .ExceptionsHandler import *
-from .CleaningUtils import *
+# from .ExceptionsHandler import *
+# from .CleaningUtils import *
 
+print("Importing Util classes")