LIBIRWLS
PIRWLS-train.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 
37 #ifndef PIRWLSTRAIN_
38 #define PIRWLSTRAIN_
39 
40 #include "IOStructures.h"
41 
51 int * rpermute(int n);
52 
69 double* subIRWLS(svm_dataset dataset,properties props, double *GIN, double *e, double *beta);
70 
85 double* trainFULL(svm_dataset dataset,properties props);
86 
87 
94 void printPIRWLSInstructions(void) ;
95 
96 
106 properties parseTrainPIRWLSParameters(int* argc, char*** argv);
107 
119 model calculatePIRWLSModel(properties props, svm_dataset dataset, double * beta );
120 
121 #endif
122 
123 
double * trainFULL(svm_dataset dataset, properties props)
It trains a full SVM with a training set.
A dataset.
Definition: IOStructures.h:108
void printPIRWLSInstructions(void)
Print Instructions.
It represents a trained model that has been obtained using PIRWLS or PSIRWLS.
Definition: IOStructures.h:75
properties parseTrainPIRWLSParameters(int *argc, char ***argv)
It parses the command line.
double * subIRWLS(svm_dataset dataset, properties props, double *GIN, double *e, double *beta)
IRWLS procedure on a Working Set.
Input and Output structures and procedures.
Training parameters of the IRWLS procedures.
Definition: IOStructures.h:44
int * rpermute(int n)
Random permutation of n elements.
model calculatePIRWLSModel(properties props, svm_dataset dataset, double *beta)
It converts the result into a model struct.