Skip to content

File Model Input

This node lets you read a saved model. It basically is a binary blob input file reader.

Tip

To make your file accessible from all spark nodes, you should use spark_settings: spark.files to add your desired file to spark context.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{ 
    type: file_model_input
    component: file_model_input
    settings: {
        file_path: model.bin
    }
    publish: [
        {
            // Most probably you will use this model in a mllib node
            // You must therefore name it model. This is explained in
            // the mllib node documentation. 
            stream: model
        }
    ]
}