Skip to content

Commit

Permalink
add folder to prediction path
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl GENNETAIS committed Apr 7, 2024
1 parent 269a44d commit 45ec38e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions notebooks/PySpark_linreg_P4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@
},
"outputs": [],
"source": [
"# split train test\n",
"train_df, test_df = v_df.randomSplit([0.7, 0.3])"
]
},
Expand Down
4 changes: 2 additions & 2 deletions src/PySpark_linreg_P4.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
# Log results to S3

conn = boto.s3.connect_to_region("eu-north-1")
bucket = conn.get_bucket("carl-p8")
key = boto.s3.key.Key(bucket, "predictions.txt")
bucket = conn.get_bucket("carl-p8-v2")
key = boto.s3.key.Key(bucket, "/p4_cloud/predictions.txt")

key.set_contents_from_string(json.dumps(lr_predictions, indent=2))

0 comments on commit 45ec38e

Please sign in to comment.