mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 13:44:16 +00:00
Fix numJumps having to be 1
This commit is contained in:
@@ -17,7 +17,7 @@ def k_nearest_neighbors(l_args, s_ticker, s_interval, df_stock):
|
||||
|
||||
parser.add_argument('-i', "--input", action="store", dest="n_inputs", type=check_positive, default=40, help='number of days to use for prediction')
|
||||
parser.add_argument('-d', "--days", action="store", dest="n_days", type=check_positive, default=5, help='prediction days')
|
||||
parser.add_argument('-j', "--jumps", action="store", dest="n_jumps", type=check_non_negative, default=0, help='number of jumps in training data')
|
||||
parser.add_argument('-j', "--jumps", action="store", dest="n_jumps", type=check_positive, default=1, help='number of jumps in training data')
|
||||
parser.add_argument('-n', "--neighbors", action="store", dest="n_neighbors", type=check_positive, default=20, help='neighbors to use on algorithm')
|
||||
|
||||
try:
|
||||
|
||||
@@ -25,7 +25,7 @@ def regression(l_args, s_ticker, s_interval, df_stock, polynomial):
|
||||
|
||||
parser.add_argument('-i', "--input", action="store", dest="n_inputs", type=check_positive, default=40, help='number of days to use for prediction')
|
||||
parser.add_argument('-d', "--days", action="store", dest="n_days", type=check_positive, default=5, help='prediction days')
|
||||
parser.add_argument('-j', "--jumps", action="store", dest="n_jumps", type=check_non_negative, default=0, help='number of jumps in training data')
|
||||
parser.add_argument('-j', "--jumps", action="store", dest="n_jumps", type=check_positive, default=1, help='number of jumps in training data')
|
||||
|
||||
if polynomial == USER_INPUT:
|
||||
parser.add_argument('-p', "--polynomial", action="store", dest="n_polynomial", type=check_positive, required=True, help='polynomial associated with regression')
|
||||
|
||||
Reference in New Issue
Block a user