...
 
Commits (5)
Here are some examples for each possible resource and actions
***** PERCEPTRON *****
-> random
python3 neuralnetworktrainercli.py random perceptron -d 784 18 16 10 -c "random perceptron" -o /tmp/perceptron.gz
PERCEPTRON_ARCHIVE=/tmp/perceptron.gz
-> randomize
rm ${PERCEPTRON_ARCHIVE}
python3 neuralnetworktrainercli.py randomize perceptron -d 10 2 -c "randomized perceptron" -a ${PERCEPTRON_ARCHIVE}
ls -lh ${PERCEPTRON_ARCHIVE}
-> create
PERCEPTRON_ID=`python3 neuralnetworktrainercli.py create perceptron -a ${PERCEPTRON_ARCHIVE}`
echo ${PERCEPTRON_ID}
-> read single
rm ${PERCEPTRON_ARCHIVE}
python3 neuralnetworktrainercli.py read perceptron -i ${PERCEPTRON_ID} -a ${PERCEPTRON_ARCHIVE}
ls -lh ${PERCEPTRON_ARCHIVE}
-> update
python3 neuralnetworktrainercli.py update perceptron -i ${PERCEPTRON_ID} -a ${PERCEPTRON_ARCHIVE}
-> patch
python3 neuralnetworktrainercli.py patch perceptron -i ${PERCEPTRON_ID} -c "patched perceptron"
-> summarize
python3 neuralnetworktrainercli.py summarize perceptron -i ${PERCEPTRON_ID}
-> delete single
python3 neuralnetworktrainercli.py delete perceptron -i ${PERCEPTRON_ID}
-> 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
python3 neuralnetworktrainercli.py delete perceptron
***** TRAINING SET *****
TRAININGSET_ARCHIVE=/tmp/trainingset.gz
rm ${TRAININGSET_ARCHIVE}
echo '{
"trainingElements":[
{
"input": [-0.9590387375223313, -0.7262874916604634, -0.15411733801644223, 0.9503177420051971, 0.007182389274566603, 0.6349310840236144, -0.418378372924193, -0.9941401399635585, 0.0602208156225954, -0.12071835034378808],
"expectedOutput": [0.45085160191500107, 0.7830055085276899]
},{
"input": [-0.17877111935151802, 0.289292172939271, 0.8031789521859756, -0.608460316151133, -0.01609260193495632, 0.7455596835370322, -0.6635541930394633, 0.5931539474269061, -0.1983855626859896, -0.8826222233730008],
"expectedOutput": [-0.8648873171128424, -0.407992733247007]
}
],
"comments": "test training set"
}' | gzip > ${TRAININGSET_ARCHIVE}
-> create
TRAININGSET_ID=`python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}`
echo ${TRAININGSET_ID}
-> read single
rm ${TRAININGSET_ARCHIVE}
python3 neuralnetworktrainercli.py read trainingset -i ${TRAININGSET_ID} -a ${TRAININGSET_ARCHIVE}
ls -lh ${TRAININGSET_ARCHIVE}
-> update
python3 neuralnetworktrainercli.py update trainingset -i ${TRAININGSET_ID} -a ${TRAININGSET_ARCHIVE}
-> patch
python3 neuralnetworktrainercli.py patch trainingset -i ${TRAININGSET_ID} -c "patched trainingset"
-> summarize
python3 neuralnetworktrainercli.py summarize trainingset -i ${TRAININGSET_ID}
-> delete single
python3 neuralnetworktrainercli.py delete trainingset -i ${TRAININGSET_ID}
-> read all
for i in {0..7}
do
python3 neuralnetworktrainercli.py create trainingset -a ${TRAININGSET_ARCHIVE}
done
python3 neuralnetworktrainercli.py read trainingset
-> delete all
python3 neuralnetworktrainercli.py delete trainingset
***** 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}
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}
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
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}
done
python3 neuralnetworktrainercli.py read trainingsession
-> delete all
python3 neuralnetworktrainercli.py delete trainingsession
***** TRAINER *****
-------------------------------------------------------------
\ No newline at end of file
......@@ -28,11 +28,11 @@ modules=[rootPackage.__name__]+import_submodules (rootPackage)
print("loaded modules : " + str(modules))
# define setup parameters
setup(
name="NeuralNetworkTrainercli",
name="NeuralNetworkTrainerCLI",
version="0.0.0",
description="Neural network trainer CLI",
packages=modules,
#dependency_links=[YGGDRASIL_REP+"neuralnetworkcommon"],
dependency_links=[YGGDRASIL_REP+"pythoncommontools"],
install_requires=["requests"],
classifiers=[
'Programming Language :: Python :: 3',
......