Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-05-03 16:44:41 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
034597016b670acb4f715990fac8aa9ba11f437d
03459701
1 parent
10e4aa43
Aiout des scripts d'évaluation de recommandation
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
grog-recommendation/scripts/CreeAmorces.bash
grog-recommendation/scripts/Recommend.bash
grog-recommendation/scripts/CreeAmorces.bash
0 → 100755
View file @
0345970
#!/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
grog-recommendation/scripts/Recommend.bash
0 → 100755
View file @
0345970
#!/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
Please
register
or
login
to post a comment