Skip to content

Mllib model node

Overview

Compatible Spark only

This Punchline Node is in charge of applying a Spark MLLib transformer model, for example a model produced by training a MLLib pipeline.

{
    type: punchline
    version: "6.0"
    runtime: spark
    tenant: default
    dag: [
        {
            type: mllib_model
            component: model_executor
            settings: {}
            publish: [
                {
                    stream: data
                }
            ]
            subscribe: [
                {
                    component: input_data
                    stream: input_data
                }
                {
                    component: file_model
                    stream: model
                }
            ]
        }
    ]
}

Tags

input_data
Data to apply model

model
model to use. Use the File Model Input Node to load model from a file or use Mllib to generate a model.