Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/shared/model.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -709,14 +709,12 @@ namespace CTF_int {
std::string model_name = std::string(name);
ofs.open(path+"/"+model_name, std::ofstream::out | std::ofstream::app);

if (my_rank == 0){
// Dump the model coeffs
for(int i=0; i<nparam; i++){
ofs<<coeff_guess[i]<<" ";
}
ofs<<"\n";
// Write a header row explaining each column of subsequent data
ofs << "execution_time";
for(int j=1; j<mat_lda; j++){
ofs << " parameter" << j;
}

ofs << std::endl;
// Dump the training data
int num_records = std::min(nobs, (int64_t)hist_size);
for(int i=0; i<num_records; i++){
Expand Down