CreeAmorcesOmega.bash
994 Bytes
#!/bin/bash
for i in `seq 1 10`;
do
for k in cosine pearson;
do
capK="$(tr '[:lower:]' '[:upper:]' <<< ${k:0:1})${k:1}"
dir=$capK"/CollectionOmega"$capK$i
if [ ! -f $dir ]; then
mkdir -p $dir
cp EchantillonCollection.csv $dir/
if [ -f $dir/Parametres.properties ]; then
rm $dir/Parametres.properties
fi
echo "topSize="$i >> $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"/NotationOmega"$capK$i
if [ ! -f $dir ]; then
mkdir -p $dir
cp EchantillonNotation.csv $dir/
if [ -f $dir/Parametres.properties ]; then
rm $dir/Parametres.properties
fi
echo "topSize="$i >> $dir/Parametres.properties
echo "algorithm="$k >> $dir/Parametres.properties
echo "ratings=true" >> $dir/Parametres.properties
fi
done
done