(task_name, model_cls)
return model_dir
Generate the model directory from the task name and model class.
    Creat if not exists. 
    Parameters:
        task_name: Name of the task. Gets prefixed to model directory
        model_cls: The models class (derived from Model)
Generate the model directory from the task name and model class.
    Creat if not exists. 
    Parameters:
        task_name: Name of the task. Gets prefixed to model directory
        model_cls: The models class (derived from Model)
Generate the model directory from the task name and model class . Creat if not exists . Parameters : task_name : Name of the task . Gets prefixed to model directory model_cls : The models class ( derived from Model )
def gen_model_dir(task_name, model_cls):
    """
    Generate the model directory from the task name and model class.
    Creat if not exists. 
    Parameters:
        task_name: Name of the task. Gets prefixed to model directory
        model_cls: The models class (derived from Model)
    """
    model_dir = os.path.join(os.getcwd(), '%s-%s'%(task_name, model_cls.__name__))
    if not os.path.exists(model_dir):
        os.mkdir(model_dir)
    return model_dir
def gen_model_dir ( task_name , model_cls ) : model_dir = os . path . join ( os . getcwd ( ) , '%s-%s' % ( task_name , model_cls . __name__ ) ) if not os . path . exists ( model_dir ) : os . mkdir ( model_dir ) return model_dir