KimchiSoup(junu)

Merge branch 'LoadPipelineModel' of https://github.com/Java-Cesco/Detecting_frau…

…d_clicks into feature/demo_pipe
This diff is collapsed. Click to expand it.
No preview for this file type
{"class":"org.apache.spark.ml.PipelineModel","timestamp":1528787042384,"sparkVersion":"2.3.0","uid":"pipeline_149a4863990b","paramMap":{"stageUids":["vecIdx_88268a92b43c","dtr_f575620c5b77"]}}
{"class":"org.apache.spark.ml.feature.VectorIndexerModel","timestamp":1528787042566,"sparkVersion":"2.3.0","uid":"vecIdx_88268a92b43c","paramMap":{"handleInvalid":"error","maxCategories":2,"inputCol":"features","outputCol":"indexedFeatures"}}
import org.apache.spark.ml.PipelineModel;
import org.apache.spark.ml.regression.DecisionTreeRegressionModel;
import org.apache.spark.sql.SparkSession;
public class LoadModel {
public static void main(String args[]) {
SparkSession spark = SparkSession
.builder()
.appName("Detecting Fraud Clicks")
.master("local")
.getOrCreate();
PipelineModel model = PipelineModel.load("decisionTree.model");
// DecisionTreeRegressionModel treeModel = (DecisionTreeRegressionModel) (model.stages()[1]);
// System.out.println(treeModel.toDebugString());
}
}