def _get_filename(dataset_name, config):
    """Get a filename based on the configuration used for model and dataset"""
    return dataset_name + '_{e}_epochs_{h}_{nl}_layers_{t}_timesteps'.format(
        e=config['epochs'], h=config['model_config']['hidden_size'],
        nl=config['model_config']['n_layers'], t=config['sequence_length']
    )