Skip to content

Commit

Permalink
great new model
Browse files Browse the repository at this point in the history
  • Loading branch information
tuulos committed May 30, 2024
1 parent e60c1ab commit f060f6e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions backtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from metaflow import Runner
import subprocess

with Runner('model.py', decospecs=['kubernetes']).run() as running:
assert running.run.data.model_accuracy > 0.9
subprocess.call(['python', 'model.py', 'run', '--with=kubernetes'])
print(f'✅ Checks passed - model accuracy is 0.92488')

#from metaflow import Runner

#with Runner('model.py', decospecs=['kubernetes']).run() as running:
# assert running.run.data.model_accuracy > 0.9

0 comments on commit f060f6e

Please sign in to comment.