Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cancinos
Created April 1, 2020 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cancinos/d743f556dc05dac4ab47b34bbf619f22 to your computer and use it in GitHub Desktop.
Save cancinos/d743f556dc05dac4ab47b34bbf619f22 to your computer and use it in GitHub Desktop.
Logistic regression console
"""
Consoles outputs and inputs:
1. Say Hi and ask for training set, evaluation set, alpha, numIterations and threshold
"""
print("Welcome to your logistic regression engine! Please give me the following variables: ")
print("1. Where's your training set?")
training_set_path = input('--> ')
print("2. Are you going to eveluate it? y/n")
evaluate_decision = input('--> ')
if evaluate_decision == 'y':
print("3. Where's your evaluation set?")
evaluation_set_path = input('--> ')
else:
print("3. Ok then, we are going to use 10-fold cross-validation for it!")
print("4. Give me your learning rate (alpha)")
alpha = input('--> ')
print("4. Give me your iterations number")
numIterations = input('--> ')
print("4. Give me your threshold")
alpha = input('--> ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment