CreeAmorces.bash
1012 Bytes
#!/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