...
 
Commits (7)
Here are some examples for each possible resource and actions
***** PERCEPTRON *****
#Here are some examples for each possible resource and actions
set -xe
# ***** CLEAN TEST *****
python3 neuralnetworktrainercli.py delete trainingsession
python3 neuralnetworktrainercli.py delete trainingset
python3 neuralnetworktrainercli.py delete perceptron
#***** PERCEPTRON *****
PERCEPTRON_ARCHIVE=/tmp/perceptron.gz
-> randomize
rm ${PERCEPTRON_ARCHIVE}
#-> randomize
rm -f ${PERCEPTRON_ARCHIVE}
python3 neuralnetworktrainercli.py randomize perceptron -d 10 2 -c "randomized perceptron" -a ${PERCEPTRON_ARCHIVE}
ls -lh ${PERCEPTRON_ARCHIVE}
-> create
#-> create
PERCEPTRON_ID=`python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}`
echo ${PERCEPTRON_ID}
-> read single
rm ${PERCEPTRON_ARCHIVE}
#-> read single
rm -f ${PERCEPTRON_ARCHIVE}
python3 neuralnetworktrainercli.py read perceptron -i ${PERCEPTRON_ID} -a ${PERCEPTRON_ARCHIVE}
ls -lh ${PERCEPTRON_ARCHIVE}
-> update
#-> update
python3 neuralnetworktrainercli.py update perceptron -i ${PERCEPTRON_ID} -a ${PERCEPTRON_ARCHIVE}
-> patch
#-> patch
python3 neuralnetworktrainercli.py patch perceptron -i ${PERCEPTRON_ID} -c "patched perceptron"
-> summarize
#-> summarize
python3 neuralnetworktrainercli.py summarize perceptron -i ${PERCEPTRON_ID}
-> delete single
#-> delete single
python3 neuralnetworktrainercli.py delete perceptron -i ${PERCEPTRON_ID}
-> read all
#-> read all
for i in {0..7}
do
python3 neuralnetworktrainercli.py randomize perceptron -d 1 1 -a ${PERCEPTRON_ARCHIVE}
python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}
done
python3 neuralnetworktrainercli.py read perceptron
-> delete all
#-> delete all
python3 neuralnetworktrainercli.py delete perceptron
***** TRAINING SET *****
#***** TRAINING SET *****
TRAININGSET_ARCHIVE=/tmp/trainingset.gz
rm ${TRAININGSET_ARCHIVE}
rm -f ${TRAININGSET_ARCHIVE}
echo '{
"trainingElements":[
{
......@@ -44,62 +49,78 @@ echo '{
],
"comments": "test training set"
}' | gzip > ${TRAININGSET_ARCHIVE}
-> create
#-> create
TRAININGSET_ID=`python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}`
echo ${TRAININGSET_ID}
-> read single
rm ${TRAININGSET_ARCHIVE}
#-> read single
rm -f ${TRAININGSET_ARCHIVE}
python3 neuralnetworktrainercli.py read trainingset -i ${TRAININGSET_ID} -a ${TRAININGSET_ARCHIVE}
ls -lh ${TRAININGSET_ARCHIVE}
-> update
#-> update
python3 neuralnetworktrainercli.py update trainingset -i ${TRAININGSET_ID} -a ${TRAININGSET_ARCHIVE}
-> patch
#-> patch
python3 neuralnetworktrainercli.py patch trainingset -i ${TRAININGSET_ID} -c "patched trainingset"
-> summarize
#-> summarize
python3 neuralnetworktrainercli.py summarize trainingset -i ${TRAININGSET_ID}
-> delete single
#-> delete single
python3 neuralnetworktrainercli.py delete trainingset -i ${TRAININGSET_ID}
-> read all
#-> read all
for i in {0..7}
do
python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}
done
python3 neuralnetworktrainercli.py read trainingset
-> delete all
#-> delete all
python3 neuralnetworktrainercli.py delete trainingset
***** TRAINING SESSION *****
#***** TRAINING SESSION *****
PERCEPTRON_ID=`python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}`
echo ${PERCEPTRON_ID}
TRAININGSET_ID=`python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}`
echo ${TRAININGSET_ID}
TRAININGSESSION_ARCHIVE=/tmp/trainingsession.gz
-> randomize
rm ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 2 -s 5 -r 0 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
#-> randomize
rm -f ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py randomize trainingsession -i ${PERCEPTRON_ID} -t ${TRAININGSET_ID} -z 1 -s 4 -r 0 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
ls -lh ${TRAININGSESSION_ARCHIVE}
-> create
TRAININGSESSION_ID=`python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}`
echo ${TRAININGSESSION_ID}
-> read single
rm ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py read trainingsession -i ${TRAININGSESSION_ID} -a ${TRAININGSESSION_ARCHIVE}
#-> create
python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
#-> read single
rm -f ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py read trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
ls -lh ${TRAININGSESSION_ARCHIVE}
-> update
python3 neuralnetworktrainercli.py update trainingsession -i ${TRAININGSESSION_ID} -a ${TRAININGSESSION_ARCHIVE}
-> patch
python3 neuralnetworktrainercli.py patch trainingsession -i ${TRAININGSESSION_ID} -c "patched trainingsession"
-> summarize
python3 neuralnetworktrainercli.py summarize trainingsession -i ${TRAININGSESSION_ID}
-> delete single
python3 neuralnetworktrainercli.py delete trainingsession -i ${TRAININGSESSION_ID}
-> read all
#-> update
python3 neuralnetworktrainercli.py update trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
#-> patch
python3 neuralnetworktrainercli.py patch trainingsession -i ${PERCEPTRON_ID} -z 2 -s 5 -c "patched trainingsession"
#-> summarize
python3 neuralnetworktrainercli.py summarize trainingsession -i ${PERCEPTRON_ID}
#-> delete single
python3 neuralnetworktrainercli.py delete trainingsession -i ${PERCEPTRON_ID}
#-> read all
for i in {0..7}
do
python3 neuralnetworktrainercli.py randomize trainingsession -d 1 1 -a ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py create trainingsession -a ${TRAININGSESSION_ARCHIVE}
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 -r 0 -c "randomized training session" -a ${TRAININGSESSION_ARCHIVE}
python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
done
python3 neuralnetworktrainercli.py read trainingsession
-> delete all
#-> delete all
python3 neuralnetworktrainercli.py delete trainingsession
#***** TRAINER *****
PERCEPTRON_ID=`python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}`
echo ${PERCEPTRON_ID}
TRAININGSET_ID=`python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}`
echo ${TRAININGSET_ID}
python3 neuralnetworktrainercli.py create trainingsession -i ${PERCEPTRON_ID} -a ${TRAININGSESSION_ARCHIVE}
#-> start
python3 neuralnetworktrainercli.py start trainer -i ${PERCEPTRON_ID}
#-> stop
python3 neuralnetworktrainercli.py stop trainer -i ${PERCEPTRON_ID}
# ***** CLEAN TEST *****
python3 neuralnetworktrainercli.py delete trainingsession
***** TRAINER *****
-------------------------------------------------------------
\ No newline at end of file
python3 neuralnetworktrainercli.py delete trainingset
python3 neuralnetworktrainercli.py delete perceptron
rm -f ${TRAININGSESSION_ARCHIVE}
rm -f ${TRAININGSET_ARCHIVE}
rm -f ${PERCEPTRON_ARCHIVE}
#-------------------------------------------------------------
\ No newline at end of file
......@@ -32,7 +32,7 @@ setup(
version="0.0.0",
description="Neural network trainer CLI",
packages=modules,
dependency_links=[YGGDRASIL_REP+"pythoncommontools"],
dependency_links=[YGGDRASIL_REP+"pythoncommontools",YGGDRASIL_REP+"neuralnetworkcommon"],
install_requires=["requests"],
classifiers=[
'Programming Language :: Python :: 3',
......