Commit 2c5325a6 authored by ymir's avatar ymir

draw training evolution

parent 9f7ffd75
Pipeline #112570 passed with stages
in 3 minutes and 24 seconds
......@@ -123,6 +123,10 @@ python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a
python3 neuralnetworktrainercli.py start trainer -i ${PERCEPTRON_ID}
#-> stop
python3 neuralnetworktrainercli.py stop trainer -i ${PERCEPTRON_ID}
#***** TRAINER *****
python3 neuralnetworktrainercli.py draw meanDifferentialErrors -i ${PERCEPTRON_ID}
python3 neuralnetworktrainercli.py draw trainedElementsNumbers -i ${PERCEPTRON_ID}
python3 neuralnetworktrainercli.py draw errorElementsNumbers -i ${PERCEPTRON_ID}
# ***** CLEAN TEST *****
python3 neuralnetworktrainercli.py delete trainingsession
python3 neuralnetworktrainercli.py delete trainingset
......
......@@ -250,7 +250,7 @@ def drawTrainingEvolution(id,resource):
URL=endPointURL+'/'+TrainerResourcePathType.SPECIFIC_TRAININGSESSION.value.replace(TrainerResourceValueType.PERCEPTRON.value,str(id))
response = get(URL, headers=GZIP)
trainingSession = loads(decompress(response.content).decode())
if trainingSession and resource in trainingSession:
if trainingSession and resource in trainingSession and len(trainingSession[resource])>0:
progressData = trainingSession[resource]
# INFO : shift minimum to 0 to optimize drawing
maximumProgressData = max(progressData)
......@@ -266,7 +266,6 @@ def drawTrainingEvolution(id,resource):
columnRatio = len(progressData) / columns
progressDisplay = list()
resetsDisplay = list()
lastDisplayIndex = 0
lastDataIndex = 0
for currentDisplayIndex in range(0, columns):
currentDataIndex = int(currentDisplayIndex * columnRatio)
......
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