Jean-Francois Leveque

Aiout des scripts d'évaluation de recommandation

#!/bin/bash
for i in `seq 1 10`;
do
for j in `seq 1 20`;
do
for k in cosine pearson;
do
capK="$(tr '[:lower:]' '[:upper:]' <<< ${k:0:1})${k:1}"
dir=$capK"/CollectionAnnotated"$j"Percent"$capK$i
if [ ! -f $dir ]; then
mkdir -p $dir
cp CompletCollection.csv $dir/
echo "topSize="$i >> $dir/Parametres.properties
echo "annotatePercent="$j >> $dir/Parametres.properties
echo "algorithm="$k >> $dir/Parametres.properties
echo "ratings=false" >> $dir/Parametres.properties
fi
done
for k in funkSVD slopeOne;
do
capK="$(tr '[:lower:]' '[:upper:]' <<< ${k:0:1})${k:1}"
dir=$capK"/CollectionAnnotated"$j"Percent"$capK$i
if [ ! -f $dir ]; then
mkdir -p $dir
cp CompletNotation.csv $dir/
echo "topSize="$i >> $dir/Parametres.properties
echo "annotatePercent="$j >> $dir/Parametres.properties
echo "algorithm="$k >> $dir/Parametres.properties
echo "ratings=true" >> $dir/Parametres.properties
fi
done
done
done
#!/bin/bash
recommendationPath=/home/leveque/GRoG-Projet/vm-environment/data/web-application/grog-recommendation/
preprocessBin=grog-recommendation-preprocess/target/grog-recommendation-preprocess-3.0-SNAPSHOT.jar
processBin=grog-recommendation-process/target/grog-recommendation-process-3.0-SNAPSHOT.jar
postprocessBin=grog-recommendation-postprocess/target/grog-recommendation-postprocess-3.0-SNAPSHOT.jar
for i in `seq 1 10`;
do
for j in `seq 1 20`;
do
for k in cosine pearson;
do
capK="$(tr '[:lower:]' '[:upper:]' <<< ${k:0:1})${k:1}"
dir=$capK"/CollectionAnnotated"$j"Percent"$capK$i
if [ ! -f $dir"/PrecisionRappel.csv" ]; then
java -jar $recommendationPath$preprocessBin --data.dir=$dir/
java -jar $recommendationPath$processBin --data.dir=$dir/
java -jar $recommendationPath$postprocessBin --data.dir=$dir/
fi
done
for k in funkSVD slopeOne;
do
capK="$(tr '[:lower:]' '[:upper:]' <<< ${k:0:1})${k:1}"
dir=$capK"/CollectionAnnotated"$j"Percent"$capK$i
if [ ! -f $dir"/PrecisionRappel.csv" ]; then
java -jar $recommendationPath$preprocessBin --data.dir=$dir/
java -jar $recommendationPath$processBin --data.dir=$dir/
java -jar $recommendationPath$postprocessBin --data.dir=$dir/
fi
done
done
done