LIBIRWLS
full-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 FULLTRAIN_
38 #define FULLTRAIN_
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 printFULLInstructions(void) ;
95 
96 
106 properties parseTrainFULLParameters(int* argc, char*** argv);
107 
119 model calculateFULLModel(properties props, svm_dataset dataset, double * beta );
120 
121 #endif
122 
123 
A dataset.
Definition: IOStructures.h:114
It represents a trained model that has been obtained using PIRWLS or PSIRWLS.
Definition: IOStructures.h:81
double * subIRWLS(svm_dataset dataset, properties props, double *GIN, double *e, double *beta)
IRWLS procedure on a Working Set.
void printFULLInstructions(void)
Print Instructions.
Input and Output structures and procedures.
Training parameters of the IRWLS procedures.
Definition: IOStructures.h:44
double * trainFULL(svm_dataset dataset, properties props)
It trains a full SVM with a training set.
model calculateFULLModel(properties props, svm_dataset dataset, double *beta)
It converts the result into a model struct.
properties parseTrainFULLParameters(int *argc, char ***argv)
It parses the command line.
int * rpermute(int n)
Random permutation of n elements.