Skip to content

Commit

Permalink
re-added perceptron model
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskramm committed Feb 5, 2012
1 parent 1f826b7 commit 3ff6c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model_select.c
Expand Up @@ -68,7 +68,7 @@ model_collection_t collections[] = {
{dtree_models, &num_dtree_models},
{svm_models, &num_svm_models},
{ann_models, &num_ann_models},
//{perceptron_models, &num_perceptron_models},
{perceptron_models, &num_perceptron_models},
};

model_factory_t* model_factory_get_by_name(const char*name)
Expand Down Expand Up @@ -339,7 +339,7 @@ int model_errors(model_t*m, dataset_t*s)
if(row_error + correct) {
error += row_error / (double)(row_error+correct);
}
total += correct + row_error;
total += correct + row_error; // add row sum
}
int cn = c->n;
confusion_matrix_destroy(c);
Expand Down

0 comments on commit 3ff6c02

Please sign in to comment.