Example #1
0
def test_plot_2d():
    setup()
    cl_gui.process('load_random')
    cl_gui.process('plot_2d --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_2d.png' in temp_files)
    td()
Example #2
0
def test_plot_2d():
    setup()
    cl_gui.process('load_random')
    cl_gui.process('plot_2d --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_2d.png' in temp_files)
    td()
Example #3
0
def test_visualize_iris():
    setup()
    cl_gui.process('load pk/tests/iris.csv')
    cl_gui.process('visualize --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_andrews.png' in temp_files)
    assert_true('plot_frequency.png' in temp_files)
    assert_true('plot_radial.png' in temp_files)
    td()
Example #4
0
def test_visualize_iris():
    setup()
    cl_gui.process('load pk/tests/iris.csv')
    cl_gui.process('visualize --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_andrews.png' in temp_files)
    assert_true('plot_frequency.png' in temp_files)
    assert_true('plot_radial.png' in temp_files)
    td()
Example #5
0
def test_preprocess_flow():
    setup()
    cl_gui.process('load pk/tests/iris2.csv')
    cl_gui.process('preprocess -std -norm')
    cl_gui.process('plot_radial --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_radial.png' in temp_files)
    td()
Example #6
0
def test_preprocess_flow():
    setup()
    cl_gui.process('load pk/tests/iris2.csv')
    cl_gui.process('preprocess -std -norm')
    cl_gui.process('plot_radial --suppress')
    temp_files = os.listdir('_temp/')
    assert_true('plot_radial.png' in temp_files)
    td()
Example #7
0
def test_run_decision_tree():
    setup()
    cl_gui.process('load pk/tests/iris2.csv')
    cl_gui.process('run -A dt -test_ratio .5 -cv 15')
    td()
Example #8
0
def test_run_decision_tree():
    setup()
    cl_gui.process('load pk/tests/iris2.csv')
    cl_gui.process('run -A dt -test_ratio .5 -cv 15')
    td()