File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,12 +833,17 @@ def get_next(
833833 indicator = None
834834 n_sample = f .sum () # use len(ss) for adding history
835835
836+ # validate selection method
837+ valid_selections = {"fixed" , "random" , "maxprob" , "active" }
838+ if next .selection not in valid_selections :
839+ raise ValueError (f"Unknown selection method: '{ next .selection } '" )
840+
836841 # select an element based on the method
837842
838843 if next .selection == "fixed" : # next row
839844 element_id = ss .index [0 ]
840845
841- if next .selection == "random" : # random row
846+ elif next .selection == "random" : # random row
842847 element_id = ss .sample (n = 1 ).index [0 ]
843848
844849 # be sure that the model has been trained
Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ DATA_URL=/data
5050ROOT_PASSWORD = l3tm31n!
5151ACTIVETIGGER_USER_HDD_MAX = 30
5252MAX_LOADED_PROJECTS = 20
53- N_WORKERS_GPU = 1
54- N_WORKERS_CPU = 3
5553UPDATE_TIMEOUT = 1
5654SECRET_KEY = " Q__zz0ew00R_YSwCFl-6VgS9dPbfDtFDnzHfd57t0EY=" # FALSE KEY CHANGE IT 32 url-safe base64-encoded bytes
5755JWT_ALGORITHM = HS256
You can’t perform that action at this time.
0 commit comments