KimchiSoup(junu)

merge graph&table

{"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"}}
......@@ -63,10 +63,12 @@ public class GUI extends JFrame {
class PngPane extends JPanel {
public PngPane() {
super();
ImageIcon image = new ImageIcon("data/model.png");
ImageIcon image = new ImageIcon("./visualize.png");
JLabel label = new JLabel("", image, JLabel.CENTER);
setLayout(new BorderLayout());
add(label, BorderLayout.CENTER);
JLabel acc = new JLabel("accuracy: 98.12");
add(acc,BorderLayout.NORTH);
}
}
class SharedArea{
......
......@@ -10,8 +10,8 @@ public class LoadModel {
.master("local")
.getOrCreate();
PipelineModel model = PipelineModel.load("decisionTree.model");
// DecisionTreeRegressionModel treeModel = (DecisionTreeRegressionModel) (model.stages()[1]);
// System.out.println(treeModel.toDebugString());
PipelineModel model = PipelineModel.load("decisionTree");
DecisionTreeRegressionModel treeModel = (DecisionTreeRegressionModel) (model.stages()[1]);
System.out.println(treeModel.toDebugString());
}
}
......

11.6 KB