Created
September 18, 2022 17:46
-
-
Save Steboss89/45380abaf689a92fc42e62a88569c8d1 to your computer and use it in GitHub Desktop.
Set up a parser for input arguments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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