Commit 6122f4f0 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

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

No related merge requests found
Showing with 9 additions and 8 deletions
+9 -8
...@@ -74,6 +74,15 @@ protected: ...@@ -74,6 +74,15 @@ protected:
SetOfficialDocLink(); SetOfficialDocLink();
Superclass::DoInit(); 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 void DoUpdateParameters() override
......
...@@ -86,14 +86,6 @@ TrainVectorBase<TInputValue, TOutputValue> ...@@ -86,14 +86,6 @@ TrainVectorBase<TInputValue, TOutputValue>
"Only geometries with this field available will be taken into account." ); "Only geometries with this field available will be taken into account." );
this->SetListViewSingleSelectionMode( "cfield", true ); 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->AddParameter(ParameterType_Bool, "v", "Verbose mode");
this->SetParameterDescription("v", "Verbose mode, display the contingency table result."); this->SetParameterDescription("v", "Verbose mode, display the contingency table result.");
this->SetParameterInt("v", 1); this->SetParameterInt("v", 1);
......
Supports Markdown
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