public class PerceptronModel extends AbstractModel
AbstractModel.ModelType
Constructor and Description |
---|
PerceptronModel(Context[] params,
String[] predLabels,
Map<String,Integer> pmap,
String[] outcomeNames)
Deprecated.
this will be removed in 1.8.1, pmap should be private
|
PerceptronModel(Context[] params,
String[] predLabels,
String[] outcomeNames) |
Modifier and Type | Method and Description |
---|---|
static double[] |
eval(int[] context,
double[] prior,
EvalParameters model) |
static double[] |
eval(int[] context,
float[] values,
double[] prior,
EvalParameters model,
boolean normalize)
Deprecated.
|
double[] |
eval(String[] context)
Evaluates a context.
|
double[] |
eval(String[] context,
double[] probs)
Evaluates a context.
|
double[] |
eval(String[] context,
float[] values)
Evaluates a contexts with the specified context values.
|
double[] |
eval(String[] context,
float[] values,
double[] outsums) |
equals, getAllOutcomes, getBestOutcome, getDataStructures, getIndex, getModelType, getNumOutcomes, getOutcome, hashCode
@Deprecated public PerceptronModel(Context[] params, String[] predLabels, Map<String,Integer> pmap, String[] outcomeNames)
public double[] eval(String[] context)
MaxentModel
context
- A list of String names of the contextual predicates
which are to be evaluated together.public double[] eval(String[] context, float[] values)
MaxentModel
context
- A list of String names of the contextual predicates
which are to be evaluated together.values
- The values associated with each context.public double[] eval(String[] context, double[] probs)
MaxentModel
context
- A list of String names of the contextual predicates
which are to be evaluated together.probs
- An array which is populated with the probabilities for each of the different
outcomes, all of which sum to 1.public double[] eval(String[] context, float[] values, double[] outsums)
public static double[] eval(int[] context, double[] prior, EvalParameters model)
@Deprecated public static double[] eval(int[] context, float[] values, double[] prior, EvalParameters model, boolean normalize)
Copyright © 2017 The Apache Software Foundation. All rights reserved.