From 01f3b41733e949a09506e5c2f80d77f1fbb825ae Mon Sep 17 00:00:00 2001 From: bbauvin <baptiste.bauvin@centrale-marseille.fr> Date: Tue, 7 Nov 2017 18:55:38 -0500 Subject: [PATCH] Minor change --- Code/MonoMultiViewClassifiers/Monoview/ExecClassifMonoView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/MonoMultiViewClassifiers/Monoview/ExecClassifMonoView.py b/Code/MonoMultiViewClassifiers/Monoview/ExecClassifMonoView.py index 41fa78d4..cd93a387 100644 --- a/Code/MonoMultiViewClassifiers/Monoview/ExecClassifMonoView.py +++ b/Code/MonoMultiViewClassifiers/Monoview/ExecClassifMonoView.py @@ -32,7 +32,7 @@ def initConstants(args, X, classificationIndices, labelsNames, name, directory): feat = X.attrs["name"] CL_type = kwargs["CL_type"] X = getValue(X) - learningRate = len(classificationIndices[0]) / (len(classificationIndices[0]) + len(classificationIndices[1])) + learningRate = float(len(classificationIndices[0])) / (len(classificationIndices[0]) + len(classificationIndices[1])) labelsString = "-".join(labelsNames) timestr = time.strftime("%Y%m%d-%H%M%S") CL_type_string = CL_type -- GitLab