diff options
| author | Priyansh <[email protected]> | 2021-12-09 02:50:03 -0500 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2021-12-09 02:50:03 -0500 |
| commit | f3682842826788cdbb9de6014f4654c472069023 (patch) | |
| tree | 1c71d2b756e9434a1d97218c7a0bc0784186f3fe | |
| parent | b920c946c6341ab7574e3d87ab6297aef9ea16a1 (diff) | |
| download | temp_pred_arima-f3682842826788cdbb9de6014f4654c472069023.tar.xz temp_pred_arima-f3682842826788cdbb9de6014f4654c472069023.zip | |
Time Series Model No longer compresses the file
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | time_series_model.py | 9 |
2 files changed, 7 insertions, 11 deletions
@@ -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) |
