package ui;

import dbn.FlowManager;
import org.junit.Test;

/**
 *
 * @author evripidis
 */
public class FlowManagerTest {
    
    public FlowManagerTest() {
    }

    /**
     * Test of main method, of class FlowManager.
     */
    @Test
    public void testMain() throws Exception {
        String[] args = {
            /* BIBTEX
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/bibtex - sparse/",
            "-train",   "bibtex-train.arff",
            "-test",    "bibtex-test.arff",
            "-info",    "bibtex.xml",
            "-load",    "DATA/bibtex.dbn",
            "-l",       "1836", "918", "368", "159",
            //*/
            /* CAL500
            "-path", "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/CAL500/",
            "-train", "CAL500.arff",
            "-load", "DATA/CAL500.dbn",
            "-info", "CAL500.xml",
            "-l", "68", "170", "340", "174",
            //*/
            //* EMOTIONS
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/emotions/",
            "-train",   "emotions-train.arff",
            "-test",    "emotions-test.arff",
            "-load",    "DATA/emotions.dbn",
            "-info",    "emotions.xml",
            "-l",       "72", "36", "15", "6",
            //*/
            /* SCENE
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/scene/",
            "-train",   "scene-train.arff",
            "-test",    "scene-test.arff",
            "-load",    "DATA/scene.dbn",
            "-info",    "scene.xml",
            "-l",       "294", "147", "59", "6",
            //*/
            /* MEDIAMILL
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/mediamill/",
            "-train",   "mediamill-train.arff",
            "-test",    "mediamill-test.arff",
            "-load",    "DATA/mediamill.dbn",
            "-info",    "mediamill.xml",
            "-l",       "120", "110", "105", "101",
            //*/
            /* ENRON
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/enron/",
            "-train",   "enron-train.arff",
            "-test",    "enron-test.arff",
            "-load",    "DATA/enron.dbn",
            "-info",    "enron.xml",
            "-l",       "1001", "500", "200", "53",
            //*/
            /* MEDICAL
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/medical/",
            "-train",   "medical-train.arff",
            "-test",    "medical-test.arff",
            "-load",    "DATA/medical.dbn",
            "-info",    "medical.xml",
            "-l",       "1449", "725", "290", "45",
            //*/
            /* GENBASE
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/genbase/",
            "-train",   "genbase-train.arff",
            "-test",    "genbase-test.arff",
            "-load",    "DATA/genbase.dbn",
            "-info",    "genbase.xml",
            "-l",       "1186", "593", "237", "27",
            //*/
            /* YEAST
            "-path",    "D:/Documents/Dropbox/University/Aristotle University of Thessaloniki/Πτυχιακή/data/yeast/",
            "-train",   "yeast-train.arff",
            "-test",    "yeast-test.arff",
            "-load",    "DATA/yeast.dbn",
            "-info",    "yeast.xml",
            "-l",       "103", "52", "21", "14",
            //*/
            //"-threshold",   "0.5",
            "-ge",          "1000",
            "-be",          "100",
            "-m",           "0.1",
            "-lr",          "0.1",
            "-wcost",       "0.00001",
            "-debug"
        };
        FlowManager.main(args);
    }
    
    /*
    @Test
    public void TestFormatMissiseconds() {
        System.out.println("5000 milliseconds: " + FlowManager.FormatMilliseconds(5000));
        System.out.println("10 milliseconds: " + FlowManager.FormatMilliseconds(10));
        System.out.println("100 milliseconds: " + FlowManager.FormatMilliseconds(100));
        System.out.println("1000 milliseconds: " + FlowManager.FormatMilliseconds(1000));
        System.out.println("10000 milliseconds: " + FlowManager.FormatMilliseconds(10000));
        System.out.println("100000 milliseconds: " + FlowManager.FormatMilliseconds(100000));
    }
    //*/
}
