Ejemplo n.º 1
0
def test_simple_creation():
    """Evaluate a model with a simple example feature vector."""
    # Get model file
    create.main("mlp", "10:12:8", "model_test.tar")
Ejemplo n.º 2
0
def test_create_nontar_model():
    """Try to create a model which has no tar file."""
    current_folder = os.path.dirname(os.path.realpath(__file__))
    misc_folder = os.path.join(current_folder, "misc")
    model_file = os.path.join(misc_folder, "model-nonexistent.bla")
    create.main("mlp", "10:12:8", model_file)
Ejemplo n.º 3
0
def test_create_already_exists():
    """Try to create a model 'over' a file which already exists."""
    current_folder = os.path.dirname(os.path.realpath(__file__))
    misc_folder = os.path.join(current_folder, "misc")
    model_file = os.path.join(misc_folder, "model.tar")
    create.main("mlp", "10:12:8", model_file)
Ejemplo n.º 4
0
def create_nontar_model_test():
    """Try to create a model which has no tar file."""
    current_folder = os.path.dirname(os.path.realpath(__file__))
    misc_folder = os.path.join(current_folder, "misc")
    model_file = os.path.join(misc_folder, "model-nonexistent.bla")
    create.main('mlp', '10:12:8', model_file)
Ejemplo n.º 5
0
def create_already_exists_test():
    """Try to create a model 'over' a file which already exists."""
    current_folder = os.path.dirname(os.path.realpath(__file__))
    misc_folder = os.path.join(current_folder, "misc")
    model_file = os.path.join(misc_folder, "model.tar")
    create.main('mlp', '10:12:8', model_file)
Ejemplo n.º 6
0
def simple_creation_test():
    """Evaluate a model with a simple example feature vector."""
    # Get model file
    create.main('mlp', '10:12:8', 'model_test.tar')