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-04-25 15:40:46 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
18bfe6ca0babb5e2b2b5d9f1b35ccb30ce867d93
18bfe6ca
1 parent
3710fa38
Correction logique après erreur d'étourdi
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
grog-recommendation/grog-recommendation-preprocess/src/main/java/org/legrog/recommendation/preprocess/PreprocessingRunner.java
grog-recommendation/grog-recommendation-preprocess/src/main/java/org/legrog/recommendation/preprocess/PreprocessingRunner.java
View file @
18bfe6c
...
...
@@ -70,7 +70,7 @@ public class PreprocessingRunner implements ApplicationRunner {
Random
random
=
new
Random
();
Integer
randomInteger
;
while
(
annotatedChosen
.
size
()
<
=
size
*
annotatePercent
/
100.0
)
{
while
(
annotatedChosen
.
size
()
<
size
*
annotatePercent
/
100.0
)
{
randomInteger
=
new
Integer
(
random
.
nextInt
(
size
));
if
(!
annotatedChosen
.
contains
(
randomInteger
))
{
annotatedChosen
.
add
(
randomInteger
);
...
...
Please
register
or
login
to post a comment