Skip to content
Snippets Groups Projects
Commit 8a7e3ef1 authored by bbauvin's avatar bbauvin
Browse files

Corrected multiple errors on multiclass classification

parent c4216e85
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ __author__ = "Nikolas Huelsmann, Baptiste BAUVIN" ...@@ -22,6 +22,7 @@ __author__ = "Nikolas Huelsmann, Baptiste BAUVIN"
__status__ = "Prototype" # Production, Development, Prototype __status__ = "Prototype" # Production, Development, Prototype
# __date__ = 2016 - 03 - 25 # __date__ = 2016 - 03 - 25
def initConstants(args, X, classificationIndices, labelsNames, name, directory): def initConstants(args, X, classificationIndices, labelsNames, name, directory):
try: try:
kwargs = args["args"] kwargs = args["args"]
......
import unittest
import numpy as np
from ...MonoMultiViewClassifiers.Monoview import ExecClassifMonoView
class Test_initConstants(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.random_state = np.random.RandomState(42)
cls.args = {"CL_type": "test_clf"}
cls.X = cls.random_state.randint(0,500,(10,20))
cls.classificationIndices = [0,2,4,6,8]
cls.labelsNames = ["test_true", "test_false"]
cls.name = "test"
cls.directory = "test_dir"
def test_simple(cls):
kwargs, \
t_start, \
feat, \
CL_type, \
X, \
learningRate, \
labelsString, \
timestr, \
outputFileName = ExecClassifMonoView.initConstants(cls.args,
cls.X,
cls.classificationIndices,
cls.labelsNames,
cls.name,
cls.directory)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment