diff --git a/snap-adv/n2v.cpp b/snap-adv/n2v.cpp index 3e51fe8ae..1b8c9c45d 100644 --- a/snap-adv/n2v.cpp +++ b/snap-adv/n2v.cpp @@ -33,7 +33,7 @@ void node2vec(PWNet& InNet, const double& ParamP, const double& ParamQ, } } if (Verbose) { - printf("\n"); + printf("\rWalking Progress: %.2lf%%\n",100); fflush(stdout); } //Learning embeddings diff --git a/snap-adv/word2vec.cpp b/snap-adv/word2vec.cpp index 273652738..cab4d02fb 100644 --- a/snap-adv/word2vec.cpp +++ b/snap-adv/word2vec.cpp @@ -154,6 +154,10 @@ void TrainModel(TVVec& WalksVV, const int& Dimensions, } WordCntAll++; } + if ( Verbose ) { + printf("\rLearning Progress: %.2lf%% ",100); + fflush(stdout); + } }