Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Feb 17, 2024
1 parent 13a2270 commit d3d5bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipeline/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def save_query(region, part_type):
coiled.Cluster,
name="reduce",
region=REGION,
n_workers=20,
n_workers=10,
tags={"workflow": "etl-tpch"},
shutdown_on_close=False,
idle_timeout="5 minutes",
Expand Down
3 changes: 2 additions & 1 deletion pipeline/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def train(file):
with tempfile.TemporaryDirectory() as tmpdir:
out = Path(tmpdir) / "model.json"
model.save_model(out)
fs.mv(str(out), str(MODEL_FILE.parent))
fs.makedirs(MODEL_FILE.parent, exist_ok=True)
fs.put(out, MODEL_FILE)
return model


Expand Down

0 comments on commit d3d5bd7

Please sign in to comment.