Name |
Type |
Description |
Select_DataMining_Profile |
beanshell |
Scriptimport javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
List selectionValues =new ArrayList();
selectionValues.add(0,"Clasificación");
selectionValues.add(1,"Reglas de Asociación") ;
selectionValues.add(2,"Series Temporales");
selectionValues.add(3,"Clustering");
ButtonGroup group = new ButtonGroup();
JPanel messagePanel = new JPanel();
messagePanel.setLayout(new BoxLayout(messagePanel,BoxLayout.Y_AXIS));
messagePanel.add(new JLabel((message == void ? null : message)));
JRadioButton[] buttonArray = new JRadioButton[selectionValues.size()];
for (int i = 0; i < buttonArray.length; i++) {
buttonArray[i] = new JRadioButton(selectionValues.get(i));
if (i==0) buttonArray[i].setSelected(true);
group.add(buttonArray[i]);
messagePanel.add(buttonArray[i]);
}
JOptionPane.showOptionDialog(null, messagePanel, "Selecciona Tipo de Técnica de Minería",
JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[]{"OK"}, null);
String technique="";
for (JRadioButton button : buttonArray) {
if (button.isSelected()) {
technique=button.getText();
}
}
|
List_Files |
beanshell |
Scriptimport java.awt.CardLayout;
import java.awt.Image;
import java.awt.Toolkit;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import javax.swing.ImageIcon;
import javax.swing.JEditorPane;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.filechooser.FileFilter;
class FileExtFilter extends FileFilter {
public FileExtFilter(String ext, String label, boolean includeDir) {
this.ext = ext;
this.label = label;
this.includeDir = includeDir;
}
public String getDescription() {
return this.label;
}
public boolean accept(File file) {
if (file.isDirectory() && includeDir) {
return true;
} else {
return file.getName().endsWith(this.ext);
}
}
String ext, label;
boolean includeDir;
}
if (title == void) {
title = "Arff File";
}
if ((fileExtensions == void) || (fileExtensions == null)) {
fileExtensions = ".arff";
}
if ((fileExtLabels == void) || (fileExtLabels == null)) {
fileExtLabels = "";
}
//JFileChooser chooser = new JFileChooser();
//chooser.setDialogTitle(title);
String[] fileTypeList = fileExtensions.split(",");
String[] filterLabelList = fileExtLabels.split(",");
if (fileTypeList != null && filterLabelList != null && fileTypeList.length != filterLabelList.length) {
throw new RuntimeException("The list of extensions and file filter labels must be the same length");
}
// create the file filters
//for (int i = 0; i < fileTypeList.length; i++) {
// FileExtFilter filter = new FileExtFilter(fileTypeList[i], filterLabelList[i], true);
// chooser.setFileFilter(filter);
//}
//chooser.showOpenDialog(null);
//File file = chooser.getSelectedFile();
//selectedFile = file.getAbsolutePath();
//name = file.getName();
//String temp= "texto\\nombre\\apellido";
path=directory;
//out1=directory.replaceAll("\\" , "X"); |
REST_Get_Files_Information |
rest |
|
MetaCharacteristics_Nestled_Workflow |
workflow |
|
DataMiningAlgorithm_NestedWorkflow |
workflow |
|
REST_Get_InformationxModel |
rest |
|
Select_Measure_of_Performance |
beanshell |
Scriptimport javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
List selectionValues =new ArrayList();
selectionValues.add(0,"Accuracy");
selectionValues.add(1,"Kappa") ;
selectionValues.add(2,"Mean Absolute Error");
selectionValues.add(3,"Precision");
selectionValues.add(2,"Recall");
selectionValues.add(3,"F-Measure");
ButtonGroup group = new ButtonGroup();
JPanel messagePanel = new JPanel();
messagePanel.setLayout(new BoxLayout(messagePanel,BoxLayout.Y_AXIS));
messagePanel.add(new JLabel((message == void ? null : message)));
JRadioButton[] buttonArray = new JRadioButton[selectionValues.size()];
for (int i = 0; i < buttonArray.length; i++) {
buttonArray[i] = new JRadioButton(selectionValues.get(i));
if (i==0) buttonArray[i].setSelected(true);
group.add(buttonArray[i]);
messagePanel.add(buttonArray[i]);
}
JOptionPane.showOptionDialog(null, messagePanel, "Selecciona Medida de Rendimiento",
JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[]{"OK"}, null);
String measure_of_performance="";
for (JRadioButton button : buttonArray) {
if (button.isSelected()) {
measure_of_performance=button.getText();
}
}
|
Select_Method_of_Performance |
beanshell |
Scriptimport javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
List selectionValues =new ArrayList();
selectionValues.add(0,"Cross-validation");
selectionValues.add(1,"Hold-Out Set");
ButtonGroup group = new ButtonGroup();
JPanel messagePanel = new JPanel();
messagePanel.setLayout(new BoxLayout(messagePanel,BoxLayout.Y_AXIS));
messagePanel.add(new JLabel((message == void ? null : message)));
JRadioButton[] buttonArray = new JRadioButton[selectionValues.size()];
for (int i = 0; i < buttonArray.length; i++) {
buttonArray[i] = new JRadioButton(selectionValues.get(i));
if (i==0) buttonArray[i].setSelected(true);
group.add(buttonArray[i]);
messagePanel.add(buttonArray[i]);
}
JOptionPane.showOptionDialog(null, messagePanel, "Seleccione Método de Evaluación del Rendimiento",
JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[]{"OK"}, null);
String method_of_performance="";
for (JRadioButton button : buttonArray) {
if (button.isSelected()) {
method_of_performance=button.getText();
}
}
|
Comments (0)
No comments yet
Log in to make a comment