/** * Creates a new model with the specified parameters, outcome names, and * predicate/feature labels. * * @param params * The parameters of the model. * @param predLabels * The names of the predicates used in this model. * @param outcomeNames * The names of the outcomes this model predicts. * @param correctionConstant * The maximum number of active features which occur in an event. * @param correctionParam * The parameter associated with the correction feature. * @param prior * The prior to be used with this model. */ public GISModel(Context[] params, String[] predLabels, String[] outcomeNames, int correctionConstant, double correctionParam, Prior prior) { super(params, predLabels, outcomeNames, correctionConstant, correctionParam); this.prior = prior; prior.setLabels(outcomeNames, predLabels); modelType = ModelType.Maxent; }
/** * Creates a new model with the specified parameters, outcome names, and * predicate/feature labels. * * @param params * The parameters of the model. * @param predLabels * The names of the predicates used in this model. * @param outcomeNames * The names of the outcomes this model predicts. * @param correctionConstant * The maximum number of active features which occur in an event. * @param correctionParam * The parameter associated with the correction feature. * @param prior * The prior to be used with this model. */ public GISModel(Context[] params, String[] predLabels, String[] outcomeNames, int correctionConstant, double correctionParam, Prior prior) { super(params, predLabels, outcomeNames, correctionConstant, correctionParam); this.prior = prior; prior.setLabels(outcomeNames, predLabels); modelType = ModelType.Maxent; }
prior.setLabels(labels, featNames);
prior.setLabels(outcomeLabels,predLabels); numPreds = predLabels.length;
prior.setLabels(outcomeLabels,predLabels); numPreds = predLabels.length;
prior.setLabels(outcomeLabels, predLabels); numPreds = predLabels.length;