KimchiSoup(junu)

merge graph&table

1 -{"class":"org.apache.spark.ml.PipelineModel","timestamp":1528787042384,"sparkVersion":"2.3.0","uid":"pipeline_149a4863990b","paramMap":{"stageUids":["vecIdx_88268a92b43c","dtr_f575620c5b77"]}}
1 -{"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 { ...@@ -63,10 +63,12 @@ public class GUI extends JFrame {
63 class PngPane extends JPanel { 63 class PngPane extends JPanel {
64 public PngPane() { 64 public PngPane() {
65 super(); 65 super();
66 - ImageIcon image = new ImageIcon("data/model.png"); 66 + ImageIcon image = new ImageIcon("./visualize.png");
67 JLabel label = new JLabel("", image, JLabel.CENTER); 67 JLabel label = new JLabel("", image, JLabel.CENTER);
68 setLayout(new BorderLayout()); 68 setLayout(new BorderLayout());
69 add(label, BorderLayout.CENTER); 69 add(label, BorderLayout.CENTER);
70 + JLabel acc = new JLabel("accuracy: 98.12");
71 + add(acc,BorderLayout.NORTH);
70 } 72 }
71 } 73 }
72 class SharedArea{ 74 class SharedArea{
......
...@@ -10,8 +10,8 @@ public class LoadModel { ...@@ -10,8 +10,8 @@ public class LoadModel {
10 .master("local") 10 .master("local")
11 .getOrCreate(); 11 .getOrCreate();
12 12
13 - PipelineModel model = PipelineModel.load("decisionTree.model"); 13 + PipelineModel model = PipelineModel.load("decisionTree");
14 -// DecisionTreeRegressionModel treeModel = (DecisionTreeRegressionModel) (model.stages()[1]); 14 + DecisionTreeRegressionModel treeModel = (DecisionTreeRegressionModel) (model.stages()[1]);
15 -// System.out.println(treeModel.toDebugString()); 15 + System.out.println(treeModel.toDebugString());
16 } 16 }
17 } 17 }
......

11.6 KB