public LabeledMulticlassData(Map<String, Integer> m, Integer n_fea) { label_mapping = m; n_base_feature_in_train = n_fea; sp = new StructuredProblem(); }
StructuredProblem train = new StructuredProblem(); StructuredProblem test = new StructuredProblem(); if (weight_list != null) { train.weight_list = new ArrayList<Double>();
StructuredProblem cv_train = new StructuredProblem(); StructuredProblem cv_test = new StructuredProblem();
public static StructuredProblem readFeatureFile(String fea_file_name) throws IOException { int index = 0; StructuredProblem sp = new StructuredProblem(); ArrayList<String> fea_lines = LineIO.read(fea_file_name);
int t_size = para.TRAINMINI_SIZE; System.out.println("Train a mini sp to speed up! size = " + t_size); StructuredProblem minisp = new StructuredProblem(); minisp.input_list = new ArrayList<IInstance>(); minisp.output_list = new ArrayList<IStructure>();