From f3682842826788cdbb9de6014f4654c472069023 Mon Sep 17 00:00:00 2001 From: Priyansh Date: Thu, 9 Dec 2021 02:50:03 -0500 Subject: Time Series Model No longer compresses the file --- README.md | 9 +++++++-- time_series_model.py | 9 --------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 98106e2..60ae9c3 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,15 @@ With each passing day, the threat of climate change has become an important matt In this project, we will visualize how climate change affects the surface temperature of Earth and how it will likely look in the future. -## Set up Git LFS +## Getting Files -The project contains files which are larger than 100MB and therefore they require GIT LFS to be set up on your machine. Here are the instructions to setup Git LFS: +The project contains files which are larger than 100MB and therefore they require to be downloaded separately. Go to [latest releases page](https://github.com/luciferreeves/Analyzing-Climate-Change-using-Earth-Surface-Temperature-Visualization/releases/latest) and download these 3 files: +- arima.compressed +- database.db +- GlobalLandTemperaturesByCity.csv + +Put all three in the root of the project directory. ### macOS: Download HomeBrew if you don't already have it. Go to [brew.sh](https://brew.sh) or run the following command: diff --git a/time_series_model.py b/time_series_model.py index 15b8dce..769fa11 100644 --- a/time_series_model.py +++ b/time_series_model.py @@ -28,12 +28,3 @@ ts_model = pm.auto_arima(data.temp, start_p=1, start_q=1, with open('arima.pkl', 'wb') as pkl: pickle.dump(ts_model, pkl) -filename_in = "arima.pkl" -filename_out = "arima.compressed" -if exists(filename_out): - remove(filename_out) -with open(filename_in, mode="rb") as fin, open(filename_out, mode="wb") as fout: - data = fin.read() - print("Compressing Pickle File for Version Control...") - compressed_data = zlib.compress(data, zlib.Z_BEST_COMPRESSION) - fout.write(compressed_data) -- cgit v1.2.3