コード例 #1
0
 public void addConfusionMatrixTab(RF rf, RFView rfview, RFBuilder b) {
   ConfusionMatrixPresenterImpl presenter =
       new ConfusionMatrixPresenterImpl(new ConfusionMatrixViewImpl(), eventBus, rf, b);
   presenter.setData(rfview);
   presenter.getView().forestFinish(rfview.getNtree());
   // String title = "Confusion Matrix<br>" + rf.getDataKey() + "<br>" + rf.getModelKey();
   String title = "Confusion Matrix<br>" + parseDatakey(rf.getDataKey());
   TabLabelView label = new TabLabelViewImpl();
   label.setLabel(title);
   label.setPresenter(this);
   view.addVisTab(presenter.getView(), label);
   visTabs.addTab(label, presenter);
 }
コード例 #2
0
 @Override
 public void addConfusionMatrixTab(RF rf, RFBuilder b) {
   ConfusionMatrixViewImpl matrixView = new ConfusionMatrixViewImpl();
   matrixView.setResponseVariable(b.getResponseVariable());
   ConfusionMatrixPresenterImpl presenter =
       new ConfusionMatrixPresenterImpl(matrixView, eventBus, rf, b);
   // String title = "Confusion Matrix<br>" + rf.getDataKey() + "<br>" + rf.getModelKey();
   String title = "Confusion Matrix<br>" + parseDatakey(rf.getDataKey());
   TabLabelView label = new TabLabelViewImpl();
   label.setLabel(title);
   label.setPresenter(this);
   view.addVisTab(presenter.getView(), label);
   visTabs.addTab(label, presenter);
 }