Commit dfb165a2 authored by Antoine PIGEAU's avatar Antoine PIGEAU
Browse files

update test + set new parameter for NN

parent a4824f9e
......@@ -58,7 +58,7 @@ class DenseNN:
self.callbacks_list = [
kr.callbacks.EarlyStopping(
monitor='val_accuracy',
monitor='val_loss',
patience=1,
),
kr.callbacks.ModelCheckpoint(
......
......@@ -74,7 +74,7 @@ class ScriptPerceptron(ScriptNeuralNetwork):
sample = Sample()
train_x, train_y = sample.sampleTrain(train_x, train_y)
else:
raise NameError('sampling here here')
raise NameError('classifierManager.script.scriptPerceptron - prepareInput')
print("After Sampling - Shape train X:"+str(train_x.shape))
print("After Sampling - Shape train Y:"+str(train_y.shape))
......
......@@ -58,7 +58,17 @@ if __name__ == "__main__":
classifier.setScriptClassifier(ConstantClassifier.LogisticRegression)
classifier = Classifier.getClassifierLR()
classifier.predictionTaskForAllPeriods(ntime=10, cache=True)
classifier = Classifier.getClassifierAdaBoost()
classifier.predictionTaskForAllPeriods(ntime=10, cache=False)
classifier = Classifier.getClassifierRandomForest()
classifier.predictionTaskForAllPeriods(ntime=10, cache=False)
classifier = Classifier.getClassifierPerceptron()
classifier.predictionTaskForAllPeriods(ntime=10, cache=False)
'''
classification task process
......@@ -109,7 +119,7 @@ if __name__ == "__main__":
''' for all periods '''
classifier.predictionTaskForAllPeriods(ntime=10, cache=True)
#classifier.predictionTaskForAllPeriods(ntime=10, cache=True)
''' NN : all courses with hidden layers'''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment