|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.regression.logistic.learner.LogisticRegressionContent
public final class LogisticRegressionContent
Utility class that stores results of logistic regression models. It is used by the learner node model and the predictor node model.
| Constructor Summary | |
|---|---|
LogisticRegressionContent(PMMLPortObjectSpec outSpec,
List<String> factorList,
List<String> covariateList,
Matrix beta,
double loglike,
Matrix covMat,
int iter)
Create new instance. |
|
| Method Summary | |
|---|---|
PMMLGeneralRegressionContent |
createGeneralRegressionContent()
Creates a new PMML General Regression Content from this logistic regression model. |
BufferedDataTable |
createTablePortObject(ExecutionContext exec)
Creates a BufferedDataTable with the |
Map<String,Double> |
getCoefficients(DataCell logit)
Returns the parameters mapped to the coefficients for the given logit. |
double |
getEstimatedLikelihood()
|
double |
getIntercept(DataCell logit)
Returns the value of the intercept for the given logit. |
double |
getInterceptPValue(DataCell logit)
Returns the value of the intercept's p-value. |
double |
getInterceptStdErr(DataCell logit)
Returns the value of the intercept's standard error for the given logit. |
double |
getInterceptZScore(DataCell logit)
Returns the value of the intercept's z-score for the given logit. |
int |
getIterationCount()
|
List<DataCell> |
getLogits()
Logits are elements of the target domain values except of the last one. |
List<String> |
getParameters()
Returns the parameters. |
Map<String,Double> |
getPValues(DataCell logit)
Returns the parameters mapped to the p-value for the given logit. |
PMMLPortObjectSpec |
getSpec()
Returns the spec of the output. |
Map<String,Double> |
getStandardErrors(DataCell logit)
Returns the parameters mapped to the standard error for the given logit. |
Map<String,Double> |
getZScores(DataCell logit)
Returns the parameters mapped to the z-score for the given logit. |
(package private) static LogisticRegressionContent |
load(ModelContentRO parContent,
DataTableSpec spec)
|
(package private) void |
save(ModelContentWO parContent)
Save internals to the given content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
LogisticRegressionContent(PMMLPortObjectSpec outSpec,
List<String> factorList,
List<String> covariateList,
Matrix beta,
double loglike,
Matrix covMat,
int iter)
outSpec - the spec of the outputfactorList - the factors (nominla parameters)covariateList - the covariates (numeric parameters)beta - the estimated regression factorsloglike - the estimated likelihoodcovMat - the covariance matrixiter - the number of iterations| Method Detail |
|---|
public double getEstimatedLikelihood()
public int getIterationCount()
public List<DataCell> getLogits()
public List<String> getParameters()
public Map<String,Double> getCoefficients(DataCell logit)
logit - the logit
public Map<String,Double> getStandardErrors(DataCell logit)
logit - the logit
public Map<String,Double> getZScores(DataCell logit)
logit - the logit
public Map<String,Double> getPValues(DataCell logit)
logit - the logit
public double getIntercept(DataCell logit)
logit - the logit
public double getInterceptStdErr(DataCell logit)
logit - the logit
public double getInterceptZScore(DataCell logit)
logit - the logit
public double getInterceptPValue(DataCell logit)
logit - the logit
public BufferedDataTable createTablePortObject(ExecutionContext exec)
exec - The execution context
public PMMLGeneralRegressionContent createGeneralRegressionContent()
static LogisticRegressionContent load(ModelContentRO parContent,
DataTableSpec spec)
throws InvalidSettingsException
parContent - the content that holds the internalsspec - the data table spec of the training data
InvalidSettingsException - when data are not well formedvoid save(ModelContentWO parContent)
parContent - the content used as a storagepublic PMMLPortObjectSpec getSpec()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||