<CONTEXT>DocGen.HTML.section(sb, cmTitle);</BUG>if (error.train_confusion_matrix != null) {<extra_id_0>if (error.train_confusion_matrix != null) {<BUG>if (error.train_confusion_matrix.cm != null && error.train_confusion_matrix.cm.length < 100) {</BUG>if (error.validation && error.valid_confusion_matrix != null && error.valid_confusion_matrix.cm != null) error.valid_confusion_matrix.toHTML(sb);else if (error.train_confusion_matrix != null) error.train_confusion_matrix.toHTML(sb);} else {sb.append("<h5>Not shown here (too large).</h5>");</CONTEXT>
if (model_info.parameters.validation != null) {for (int i=0; i<err.length; ++i) {err[i] = (float)errors[i].valid_err;}new D3Plot(samples, err, "training samples", "classification error","classification error on validation set").generate(sb);}float[] err = new float[errors.length-1];float[] samples = new float[errors.length-1];for (int i=0; i<err.length; ++i) {err[i] = (float)errors[i+1].train_mse;samples[i] = errors[i+1].training_samples;