This repository was archived by the owner on Aug 16, 2024. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ string train_help() {
27
27
" -r <eta>: set learning rate (default 0.2)\n "
28
28
" -s <nr_threads>: set number of threads (default 1)\n "
29
29
" -p <path>: set path to the validation set\n "
30
- " --quiet: quiet model (no output)\n "
30
+ " --quiet: quiet mode (no output)\n "
31
31
" --no-norm: disable instance-wise normalization\n "
32
32
" --auto-stop: stop at the iteration that achieves the best validation loss (must be used with -p)\n " );
33
33
}
Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ inline ffm_float wTx(
106
106
if (j2 >= model.n || f2 >= model.m )
107
107
continue ;
108
108
109
- ffm_float *w1_base = model.W + j1 *align1 + f2*align0;
110
- ffm_float *w2_base = model.W + j2*align1 + f1*align0;
109
+ ffm_float *w1_base = model.W + (ffm_long) j1 *align1 + f2*align0;
110
+ ffm_float *w2_base = model.W + (ffm_long) j2*align1 + f1*align0;
111
111
112
112
__m128 XMMv = _mm_set1_ps (v1*v2*r);
113
113
@@ -206,8 +206,8 @@ inline ffm_float wTx(
206
206
if (j2 >= model.n || f2 >= model.m )
207
207
continue ;
208
208
209
- ffm_float *w1 = model.W + j1 *align1 + f2*align0;
210
- ffm_float *w2 = model.W + j2*align1 + f1*align0;
209
+ ffm_float *w1 = model.W + (ffm_long) j1 *align1 + f2*align0;
210
+ ffm_float *w2 = model.W + (ffm_long) j2*align1 + f1*align0;
211
211
212
212
ffm_float v = v1 * v2 * r;
213
213
@@ -516,7 +516,7 @@ void ffm_read_problem_to_disk(string txt_path, string bin_path) {
516
516
517
517
Timer timer;
518
518
519
- cout << " First check if the text file has already converted to binary format " << flush;
519
+ cout << " First check if the text file has already been converted to binary format " << flush;
520
520
bool same_file = check_same_txt_bin (txt_path, bin_path);
521
521
cout << " (" << fixed << setprecision (1 ) << timer.toc () << " seconds)" << endl;
522
522
You can’t perform that action at this time.
0 commit comments