Skip to content

Commit

Permalink
model/wallclock-regression-v3 (#104)
Browse files Browse the repository at this point in the history
* updated weights for wallclock regression model (v3)
  • Loading branch information
alphasentaurii authored Apr 16, 2021
1 parent d47a685 commit a543527
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions lambda/JobPredict/models/wall_reg/3/weights/checkpoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
model_checkpoint_path: "ckpt_3"
all_model_checkpoint_paths: "ckpt_3"
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions lambda/JobPredict/predict_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def regressor(model, data):
# load models
clf = get_model("./models/mem_clf/2/")
mem_reg = get_model("./models/mem_reg/2/")
wall_reg = get_model("./models/wall_reg/2/")
wall_reg = get_model("./models/wall_reg/3/")


def lambda_handler(event, context):
Expand All @@ -158,7 +158,6 @@ def lambda_handler(event, context):
MEMORY REGRESSION: A third regression model is used to estimate the actual value of memory needed for the job. This is mainly for the purpose of logging/future analysis and is not currently being used for allocating memory in calcloud jobs.
"""
bucket_name = event["Bucket"]

key = event["Key"]
ipppssoot = event["Ipppssoot"]
prep = Preprocess(ipppssoot, bucket_name, key)
Expand Down
2 changes: 1 addition & 1 deletion terraform/lambda_job_predict.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "lambda_function_container_image" {
package_type = "Image"

timeout = 360
memory_size = 800
memory_size = 1024
cloudwatch_logs_retention_in_days = local.lambda_log_retention_in_days

# ensures that terraform doesn't try to mess with IAM
Expand Down

0 comments on commit a543527

Please sign in to comment.