presto-ml/src/main/java/io/prestosql/plugin/ml/LearnLibSvmClassifierAggregation.java/LearnLibSvmClassifierAggregation/output
class LearnLibSvmClassifierAggregation:    @OutputFunction("Classifier(bigint)")
    public static void output(@AggregationState LearnState state, BlockBuilder out)
    {
        Dataset dataset = new Dataset(state.getLabels(), state.getFeatureVectors(), state.getLabelEnumeration().inverse());
        Model model = new ClassifierFeatureTransformer(new SvmClassifier(LibSvmUtils.parseParameters(state.getParameters().toStringUtf8())), new FeatureUnitNormalizer());
        model.train(dataset);
        ClassifierType.BIGINT_CLASSIFIER.writeSlice(out, ModelUtils.serialize(model));
    }