LIBIRWLS
LIBIRWLS-predict.h
Go to the documentation of this file.
1 /*
2  ============================================================================
3  Author : Roberto Diaz Morales
4  ============================================================================
5 
6  Copyright (c) 2016 Roberto Díaz Morales
7 
8  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
9  (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
10  publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
11  subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14 
15  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
17  FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 
20  ============================================================================
21  */
22 
33 #ifndef LIBIRWLSPREDICT_
34 #define LIBIRWLSPREDICT_
35 
36 #include "IOStructures.h"
37 
48 double *test(svm_dataset dataset, model mymodel,predictProperties props);
49 
50 
61 double *softTest(svm_dataset dataset, model mymodel,predictProperties props);
62 
63 
70 void printPredictInstructions(void);
71 
72 
82 predictProperties parsePredictParameters(int* argc, char*** argv);
83 
84 
85 #endif
86 
A dataset.
Definition: IOStructures.h:114
double * softTest(svm_dataset dataset, model mymodel, predictProperties props)
Function to obtain the soft output of the classifier.
It represents a trained model that has been obtained using PIRWLS or PSIRWLS.
Definition: IOStructures.h:81
void printPredictInstructions(void)
Print instructions.
Input and Output structures and procedures.
Testing parameters of the IRWLS procedures.
Definition: IOStructures.h:65
predictProperties parsePredictParameters(int *argc, char ***argv)
It parses the prediction parameters from the command line.
double * test(svm_dataset dataset, model mymodel, predictProperties props)
Function to classify data in a labeled dataset and to obtain the accuracy.