Commit e4aa2bf1 authored by ymir's avatar ymir

type test ratio as float

parent 1444b4a1
Pipeline #110594 passed with stages
in 3 minutes and 16 seconds
......@@ -87,7 +87,7 @@ echo ${TRAININGSET_ID}
TRAININGSESSION_ARCHIVE=/tmp/trainingsession.gz
#-> randomize
rm -f ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 1 -s 4 -m 5 -r 0 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 1 -s 4 -m 5 -r .1 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
ls -lh ${TRAININGSESSION_ARCHIVE}
#-> create
python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
......@@ -107,7 +107,7 @@ python3 neuralnetworktrainercli.py delete trainingsession -i ${PERCEPTRON_ID}
for i in {0..7}
do
PERCEPTRON_ID=`python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}`
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 1 -s 4 -m 3 -r 0 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 1 -s 4 -m 3 -r .1 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
done
python3 neuralnetworktrainercli.py read trainingsession
......
......@@ -44,7 +44,7 @@ parser.add_argument("-a", "--archive", type=str, help="file to archive resource,
parser.add_argument("-c", "--comments", type=str, help="any free text that can help you, i.e. 'this is a test'")
parser.add_argument("-d", "--dimensions", type=int, nargs='+', help="ordered perceptrons layers sizes, i.e. 10 2 ...")
parser.add_argument("-i", "--id", type=int, help="specific ID for the resource, i.e. 123")
parser.add_argument("-r", "--test-ratio", type=int, help="ration (between 0 and 1) of training set element that will be used for testing (after training), i.e. 0.25")
parser.add_argument("-r", "--test-ratio", type=float, help="ration (between 0 and 1) of training set element that will be used for testing (after training), i.e. 0.25")
parser.add_argument("-s", "--save-interval", type=int, help="interval to save training session progress, i.e. 10")
parser.add_argument("-m", "--maximum-try", type=int, help="maximum try on a sub-sequence before reset, i.e. 100")
parser.add_argument("-t", "--training-set-id", type=int, help="training set ID to link on training session, i.e. 456")
......
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