Skip to content

Commit

Permalink
全局变量导致的多次运行结果不一致
Browse files Browse the repository at this point in the history
  • Loading branch information
mjj committed Mar 29, 2016
1 parent c1cf600 commit 552bc30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Rword2vec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ int Rword2vec( std::string Rtrain_file,
int Rmin_count,
int Rclasses){
int i;
train_words = 0;
word_count_actual = 0;
iter = 5;
file_size = 0;
classes = 0;


strcpy(train_file,Rtrain_file.c_str());
strcpy(output_file,Routput_file.c_str());
Expand Down

0 comments on commit 552bc30

Please sign in to comment.