Skip to content
Snippets Groups Projects
Commit 6122f4f0 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: move the io.confmatout parameter from TrainVectorBase to TrainVectorClassifier

parent c8bbc7bd
Branches
Tags
No related merge requests found
......@@ -74,6 +74,15 @@ protected:
SetOfficialDocLink();
Superclass::DoInit();
// Add a new parameter to compute confusion matrix / contingency table
this->AddParameter( ParameterType_OutputFilename, "io.confmatout",
"Output confusion matrix or contingency table" );
this->SetParameterDescription( "io.confmatout",
"Output file containing the confusion matrix or contingency table (.csv format)."
"The contingency table is output when we unsupervised algorithms is used otherwise the confusion matrix is output." );
this->MandatoryOff( "io.confmatout" );
}
void DoUpdateParameters() override
......
......@@ -86,14 +86,6 @@ TrainVectorBase<TInputValue, TOutputValue>
"Only geometries with this field available will be taken into account." );
this->SetListViewSingleSelectionMode( "cfield", true );
// Add a new parameter to compute confusion matrix / contingency table
this->AddParameter( ParameterType_OutputFilename, "io.confmatout",
"Output confusion matrix or contingency table" );
this->SetParameterDescription( "io.confmatout",
"Output file containing the confusion matrix or contingency table (.csv format)."
"The contingency table is output when we unsupervised algorithms is used otherwise the confusion matrix is output." );
this->MandatoryOff( "io.confmatout" );
this->AddParameter(ParameterType_Bool, "v", "Verbose mode");
this->SetParameterDescription("v", "Verbose mode, display the contingency table result.");
this->SetParameterInt("v", 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment