use of com.airbnb.aerosolve.core.util.StringDictionary in project aerosolve by airbnb.
the class KernelModel method loadInternal.
@Override
protected void loadInternal(ModelHeader header, BufferedReader reader) throws IOException {
long rows = header.getNumRecords();
dictionary = new StringDictionary(header.getDictionary());
supportVectors = new ArrayList<>();
for (long i = 0; i < rows; i++) {
String line = reader.readLine();
ModelRecord record = Util.decodeModel(line);
supportVectors.add(new SupportVector(record));
}
}
Aggregations