nice

parent 2341ace9
......@@ -166,9 +166,7 @@ idx_t learn_model_traditional(binary_matrix& X,
<< std::endl;
}
do {
char tmpfname[128];
snprintf(tmpfname,127,"%04lu_dict_iter.pbm",iter);
//render_mosaic(D,tmpfname);
preview_iter(X,E,H,D,A,K,iter); //render_mosaic(D,tmpfname);
if (get_verbosity() >= 2) {
codelength L = model_codelength(E,D,A);
std::cout << "DLEARN"
......@@ -492,9 +490,7 @@ idx_t learn_model_mdl_forward_selection(binary_matrix& X,
<< "| " << std::setw(FW-2) << ((double) (clock() - t0))/CLOCKS_PER_SEC
<< std::endl;
{
char tmpfname[128];
//snprintf(tmpfname,127,"%04lu_dict.pbm",K);
//render_mosaic(currD,tmpfname);
preview_iter(X,E,H,D,A,K,0); //render_mosaic(D,tmpfname);
}
tic = clock();
initialize_dictionary(currE,H,nextAtom,nextCoefs);
......
......@@ -23,10 +23,10 @@ idx_t preview_mosaic( const binary_matrix& X,
const binary_matrix& E,
const binary_matrix& D,
const binary_matrix& A,
const idx_t inner_iter,
const idx_t outer_iter) {
const idx_t outer_iter,
const idx_t inner_iter) {
char tmpfname[128];
snprintf(tmpfname,127,"%s%04lu_%04lu_iter.pbm",prefix,outer_iter,inner_iter);
snprintf(tmpfname,127,"%s%04lu_%04lu.pbm",prefix,outer_iter,inner_iter);
render_mosaic(D,tmpfname);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment