{"api_version":2,"name":"piflow_random_forest_prediction","version":"1.1","role":"transform","type":"sdk","description":"Apply a trained Spark random forest model to Arrow records and append prediction.","icon":{"path":"M3 18h18M5 15l5-6 4 3 5-7"},"inputs":{"source":{"representations":["records"],"formats":[]},"model":{"representations":["bytes"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{},"required":[],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records with equally sized numeric lists in features.","model":"ZIP byte stream from piflow_random_forest_training@1.0."},"outputs":{"result":"Input records plus prediction. Predictions are numeric; topic distributions are arrays."},"parameters":{},"example_job":"name: PiFlow random forest prediction\nsteps:\n- id: read_train\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/training.jsonl\n    view: records\n- id: read\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/example.jsonl\n    view: records\n- id: train\n  operator: piflow_random_forest_training@1.0\n  inputs:\n    source: read_train\n  params:\n    numTrees: 8\n    maxDepth: 3\n- id: process\n  operator: piflow_random_forest_prediction@1.1\n  inputs:\n    source: read\n    model: train\n  params: {}\n- id: receive\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"runtime":{"image":"sha256:92bf2e8f163521281f9b3e36d6ee58e770704a80ccb4caafd7e22b18251d0487","archive":{"sha256":"244388afb808414411c77762ded41f9529442a8dc11d07596ae2185836970e99","size":425330516,"filename":"piflow-spark-ml-1.0.tar.gz"}},"execution":{"executor":"jvm","entrypoint":"org.apache.spark.sql.piflow.RandomForestPrediction","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"777361c4e72b2c5457479683916b7c8e635289ff","build_instructions":"Compile src/ using piflow-spark-ml@1.0. See job.yaml for a workflow and fixtures/example.jsonl for example records.","source_archive":{"sha256":"04ff983d607aa601eb20b1c194463022700d430433f696cce30cc2c5b261b439","size":11225,"filename":"piflow_random_forest_prediction-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"c4080e4775a23e38b9eca7708c6521b6642da0af68c53b1732087b26fd932e10","size":23097,"filename":"operator.jar"},"categories":["PiFlow","Machine learning"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795080893970},"publication":{"author":"dacp-examples","submitted_at_ms":1795080837799,"approved_at_ms":1795080893970,"last_submitted_at_ms":1795080837799,"last_approved_at_ms":1795080893970},"download_count":3}