presto-ml/src/main/java/io/prestosql/plugin/ml/LearnLibSvmRegressorAggregation.java/LearnLibSvmRegressorAggregation/output
class LearnLibSvmRegressorAggregation:    @OutputFunction(RegressorType.NAME)
    public static void output(@AggregationState LearnState state, BlockBuilder out)
    {
        Dataset dataset = new Dataset(state.getLabels(), state.getFeatureVectors(), state.getLabelEnumeration().inverse());
        Model model = new RegressorFeatureTransformer(new SvmRegressor(LibSvmUtils.parseParameters(state.getParameters().toStringUtf8())), new FeatureUnitNormalizer());
        model.train(dataset);
        RegressorType.REGRESSOR.writeSlice(out, ModelUtils.serialize(model));
    }