public class GAMModelUtils
extends java.lang.Object
Constructor and Description |
---|
GAMModelUtils() |
Modifier and Type | Method and Description |
---|---|
static double[] |
convertCenterBeta2Beta(double[][][] ztranspose,
int gamNumStart,
double[] centerBeta,
int betaSize,
java.lang.String[][] gamColNames,
boolean hasIntercept) |
static int |
copyGLMCoeffNames2GAMCoeffNames(GAMModel model,
GLMModel glm) |
static void |
copyGLMCoeffs(GLMModel glm,
GAMModel model,
GAMModel.GAMParameters parms,
int nclass) |
static void |
copyGLMCoeffs2GAMCoeffs(GAMModel model,
GLMModel glm,
GLMModel.GLMParameters.Family family,
int gamNumStart,
int nclass,
boolean hasIntercept) |
static void |
copyGLMtoGAMModel(GAMModel model,
GLMModel glmModel,
GAMModel.GAMParameters parms,
boolean validNotNull) |
static water.util.TwoDimTable |
copyTwoDimTable(water.util.TwoDimTable table,
java.lang.String tableHeader) |
static void |
fillUpCoeffs(double[] coeffValues,
double[] coeffValuesStand,
water.util.TwoDimTable tdt,
int rowStart) |
static int |
gamNoCenterCoeffLength(GAMModel.GAMParameters parms)
Find the number of gamified column coefficients.
|
static water.util.TwoDimTable |
genCoefficientTable(java.lang.String[] colHeaders,
double[] coefficients,
double[] coefficientsStand,
java.lang.String[] coefficientNames,
java.lang.String tableHeader) |
static water.util.TwoDimTable |
genCoefficientTableMultinomial(java.lang.String[] colHeaders,
double[][] coefficients,
double[][] coefficients_stand,
java.lang.String[] coefficientNames,
java.lang.String tableHeader) |
static void |
zeroOutIStranspose(int[] bs_sorted,
double[][][] zTranspose) |
public static void copyGLMCoeffs(GLMModel glm, GAMModel model, GAMModel.GAMParameters parms, int nclass)
public static int gamNoCenterCoeffLength(GAMModel.GAMParameters parms)
parms
- public static void copyGLMtoGAMModel(GAMModel model, GLMModel glmModel, GAMModel.GAMParameters parms, boolean validNotNull)
public static water.util.TwoDimTable copyTwoDimTable(water.util.TwoDimTable table, java.lang.String tableHeader)
public static water.util.TwoDimTable genCoefficientTable(java.lang.String[] colHeaders, double[] coefficients, double[] coefficientsStand, java.lang.String[] coefficientNames, java.lang.String tableHeader)
public static water.util.TwoDimTable genCoefficientTableMultinomial(java.lang.String[] colHeaders, double[][] coefficients, double[][] coefficients_stand, java.lang.String[] coefficientNames, java.lang.String tableHeader)
public static void fillUpCoeffs(double[] coeffValues, double[] coeffValuesStand, water.util.TwoDimTable tdt, int rowStart)
public static int copyGLMCoeffNames2GAMCoeffNames(GAMModel model, GLMModel glm)
public static void copyGLMCoeffs2GAMCoeffs(GAMModel model, GLMModel glm, GLMModel.GLMParameters.Family family, int gamNumStart, int nclass, boolean hasIntercept)
public static double[] convertCenterBeta2Beta(double[][][] ztranspose, int gamNumStart, double[] centerBeta, int betaSize, java.lang.String[][] gamColNames, boolean hasIntercept)
public static void zeroOutIStranspose(int[] bs_sorted, double[][][] zTranspose)