Skip to content

Instantly share code, notes, and snippets.

@Steboss89
Created September 18, 2022 17:46
Show Gist options
  • Save Steboss89/45380abaf689a92fc42e62a88569c8d1 to your computer and use it in GitHub Desktop.
Save Steboss89/45380abaf689a92fc42e62a88569c8d1 to your computer and use it in GitHub Desktop.
Set up a parser for input arguments
import argparse
# MAIN
parser = argparse.ArgumentParser(description='Input arguments for MLflow testing in general')
parser.add_argument('--run_name', type=str,
help='Name of the run within the experiment family')
parser.add_argument('--exp_name', type=str,
help='Name of the family experiment')
parser.add_argument('--model', type=str,
help='Model to be used: naivebayes, logreg, randomforest')
parser.add_argument('--vectorizer', type=str,
help='Vectorizer to process text: countvectorizer or tfidf')
args = parser.parse_args()
run_name_ = args.run_name
exp_name_ = args.exp_name
model_ = args.model
vectorizer_ = args.vectorizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment