Facemorph.Stats
Interface Regressor
- All Superinterfaces:
- IniHandler, StatisticalModel
- All Known Implementing Classes:
- BinaryLogisticRegression, DifferenceOfAverages, ImagePLS, ImageRegressor, NumericRegressor, OvercompleteSPLS, PCAReducer, PLSReducer, sPLSSVD, sPLSSVD_DWH, WaveletPLS, WaveletRGBPLS, WeightedPLS, WeightedPLS2
public interface Regressor
- extends StatisticalModel
Method Summary |
double |
getSumSquaredResiduals()
|
double[] |
predict(BigMat values)
Predict using the model the values of the dependent from a set of independents |
boolean |
read(java.io.File f)
|
boolean |
write(java.io.File s)
Writes to the file specified |
boolean |
write(java.io.PrintStream out)
Writes this Template to file (via a PrintStream) |
Methods inherited from interface Facemorph.Stats.StatisticalModel |
apply, getInputDimensions, getModelInformation, getModelInformation, getOutputDimensions, outputStatistics, outputStatistics, setDependentData, setDependentData, setIndependentData, train |
predict
double[] predict(BigMat values)
- Predict using the model the values of the dependent from a set of independents
- Parameters:
values
- the independent values
- Returns:
- set of predicted values
getSumSquaredResiduals
double getSumSquaredResiduals()
- Returns:
- The Sum of Squared Residuals of the regression.
read
boolean read(java.io.File f)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
write
boolean write(java.io.File s)
- Writes to the file specified
- Parameters:
s
- the name of the file to write to
- Returns:
- returns true if all is OK
write
boolean write(java.io.PrintStream out)
- Writes this Template to file (via a PrintStream)
- Parameters:
out
- The output PrintStream
- Returns:
- if written successfully