Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jimdowling committed Jun 11, 2024
1 parent 3c64d4a commit e37dc90
Show file tree
Hide file tree
Showing 8 changed files with 1,659 additions and 4,146 deletions.
2,307 changes: 0 additions & 2,307 deletions data/stockholm-hornsgatan 108 gata-air-quality.csv

This file was deleted.

Binary file modified docs/air-quality/assets/img/pm25_forecast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/air-quality/assets/img/pm25_hindcast_1day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,209 changes: 717 additions & 492 deletions notebooks/ch03/1_air_quality_feature_backfill.ipynb

Large diffs are not rendered by default.

316 changes: 132 additions & 184 deletions notebooks/ch03/2_air_quality_feature_pipeline.ipynb

Large diffs are not rendered by default.

1,010 changes: 720 additions & 290 deletions notebooks/ch03/3_air_quality_training_pipeline.ipynb

Large diffs are not rendered by default.

954 changes: 81 additions & 873 deletions notebooks/ch03/4_air_quality_batch_inference.ipynb

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions notebooks/ch03/functions/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from retry_requests import retry
import hopsworks
import hsfs
from pathlib import Path

def get_historical_weather(city, start_date, end_date, latitude, longitude):
# latitude, longitude = get_city_coordinates(city)
Expand Down Expand Up @@ -275,3 +276,11 @@ def secrets_api(proj):
api_key = os.environ.get('HOPSWORKS_API_KEY')
conn = hopsworks.connection(host=host, project=proj, api_key_value=api_key)
return conn.get_secrets_api()


def check_file_path(file_path):
my_file = Path(file_path)
if my_file.is_file() == False:
print(f"Error. File not found at the path: {file_path} ")
else:
print(f"File successfully found at the path: {file_path}")

0 comments on commit e37dc90

Please sign in to comment.