Skip to content
Snippets Groups Projects
Commit 856cff27 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Added base config tests passing

parent 0babef6b
No related branches found
No related tags found
No related merge requests found
......@@ -816,7 +816,6 @@ def exec_classif(arguments):
os.environ['OPENBLAS_NUM_THREADS'] = '1'
stats_iter = args["stats_iter"]
hyper_param_search = args["hps_type"]
multiclass_method = args["multiclass_method"]
cl_type = args["type"]
monoview_algos = args["algos_monoview"]
multiview_algos = args["algos_multiview"]
......@@ -825,7 +824,6 @@ def exec_classif(arguments):
args["name"])
if not args["add_noise"]:
args["noise_std"]=[0.0]
print(dataset_list)
for dataset_name in dataset_list:
noise_results = []
for noise_std in args["noise_std"]:
......
......@@ -97,6 +97,11 @@ def exec_monoview(directory, X, Y, name, labels_names, classification_indices,
random_state)
classifier.fit(X_train, y_train) # NB_CORES=nbCores,
print(y_train)
print(X_train[:, 6])
print(X_train[:, 6]<=41.0)
quit()
print(X_test.shape)
logging.debug("Done:\t Training")
logging.debug("Start:\t Predicting")
......
......@@ -32,7 +32,8 @@ class DecisionTree(DecisionTreeClassifier, BaseMonoviewClassifier):
# return True
def get_interpretation(self, directory, y_test):
interpretString = ""
interpretString = "First featrue : \n\t{} <= {}\n".format(self.tree_.feature[0],
self.tree_.threshold[0])
interpretString += self.get_feature_importance(directory)
return interpretString
......
......@@ -36,7 +36,6 @@ def pass_default_config(log=True,
noise_std=0.0,
res_dir="../results/",
track_tracebacks=False,
multiclass_method="oneVersusOne",
split=0.49,
nb_folds=5,
nb_class=None,
......@@ -66,7 +65,6 @@ def pass_default_config(log=True,
:param noise_std:
:param res_dir:
:param track_tracebacks:
:param multiclass_method:
:param split:
:param nb_folds:
:param nb_class:
......@@ -81,6 +79,7 @@ def pass_default_config(log=True,
:param hps_iter:
:return:
"""
print(locals()["name"])
args = dict((key, value) for key, value in locals().items() if key !="kwargs")
args = dict(args, **kwargs)
return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment