Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def speed_choose(thickness, delta, model=bst, prelimit=limit - 600 * 3):
speeds = list(range(4, 22))
for speed in speeds:
df = pd.DataFrame({'speed': [speed], 'thickness': [thickness], 'delta': [delta]})
if model.predict(df) < prelimit:
return speed
return 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.