Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
m5000_3
def speed_choose(thickness, delta, model=bst, prelimit=limit - 600 * 3):
speeds = list(range(4, 22))
speeds.reverse()
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.