LIBIRWLS
PSIRWLS-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 
33 #ifndef PSIRWLSTRAIN_
34 #define PSIRWLSTRAIN_
35 
36 #include "IOStructures.h"
37 
47 int* randomCentroids(svm_dataset dataset,properties props);
48 
49 
58 int* SGMA(svm_dataset dataset,properties props);
59 
70 double* IRWLSpar(svm_dataset dataset, int* indexes,properties props);
71 
72 
73 
80 void printPSIRWLSInstructions(void) ;
81 
82 
92 properties parseTrainParameters(int* argc, char*** argv);
93 
106 model calculatePSIRWLSModel(properties props, svm_dataset dataset, int *centroids, double * beta );
107 
108 #endif
109 
110 
int * SGMA(svm_dataset dataset, properties props)
Sparse Greedy Matrix Approximation algorithm.
A dataset.
Definition: IOStructures.h:108
It represents a trained model that has been obtained using PIRWLS or PSIRWLS.
Definition: IOStructures.h:75
void printPSIRWLSInstructions(void)
Print Instructions.
double * IRWLSpar(svm_dataset dataset, int *indexes, properties props)
Iterative Re-Weighted Least Squares Algorithm.
properties parseTrainParameters(int *argc, char ***argv)
It parses input command line to extract the parameters of the PSIRWLS algorithm.
Input and Output structures and procedures.
Training parameters of the IRWLS procedures.
Definition: IOStructures.h:44
int * randomCentroids(svm_dataset dataset, properties props)
Random selection of centroids for the semiparametric model.
model calculatePSIRWLSModel(properties props, svm_dataset dataset, int *centroids, double *beta)
It converts the result of the PSIRWLS algorithm into a model struct.