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

Added fake interpret functions to every monoview Classifier

parent 796f8d62
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,8 @@ def canProbas():
return False
def fit(DATASET, CLASS_LABELS, randomState, NB_CORES=1, **kwargs):
modelType = kwargs['0']
maxRules = int(kwargs['1'])
......@@ -76,6 +78,10 @@ def paramsToSet(nIter, randomState):
return paramsSet
def getInterpret(classifier, directory):
return ""
def getKWARGS(kwargsList):
kwargsDict = {}
for (kwargName, kwargValue) in kwargsList:
......
......@@ -89,3 +89,6 @@ def getConfig(config):
except:
return "\n\t\t- SGDClassifier with loss : " + config["0"] + ", penalty : " + config[
"1"] + ", alpha : " + str(config["2"])
def getInterpret(classifier, directory):
return ""
......@@ -73,3 +73,6 @@ def getConfig(config):
return "\n\t\t- SVM Linear with C : " + str(config[0])
except:
return "\n\t\t- SVM Linear with C : " + str(config["0"])
def getInterpret(classifier, directory):
return ""
......@@ -75,3 +75,6 @@ def getConfig(config):
return "\n\t\t- SVM Poly with C : " + str(config[0]) + ", degree : " + str(config[1])
except:
return "\n\t\t- SVM Poly with C : " + str(config["0"]) + ", degree : " + str(config["1"])
def getInterpret(classifier, directory):
return ""
......@@ -71,3 +71,6 @@ def getConfig(config):
return "\n\t\t- SVM RBF with C : " + str(config[0])
except:
return "\n\t\t- SVM RBF with C : " + str(config["0"])
def getInterpret(classifier, directory):
return ""
\ 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