Skip to content

Commit 2899f3e

Browse files
committed
Minor updates to comment out unused code.
1 parent 7abc857 commit 2899f3e

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

auto_ts/__init__.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def warn(*args, **kwargs):
1717
import seaborn as sns # type: ignore
1818
import matplotlib.pyplot as plt # type: ignore
1919

20-
# This gives an error when running from a python script.
20+
# This gives an error when running from a python script.
2121
# Maybe, this should be set in the jupyter notebook directly.
2222
#get_ipython().magic('matplotlib inline')
2323
sns.set(style="white", color_codes=True)
@@ -107,12 +107,6 @@ def Auto_Timeseries(traindata, ts_column, target, sep=',', score_type='rmse',
107107
d_max = 1
108108
q_max = 3
109109
################################
110-
# Check: seasonal_order is not used anywhere in the code, hence commented for now.
111-
# if type(seasonal_PDQ) == tuple:
112-
# seasonal_order = copy.deepcopy(seasonal_PDQ)
113-
# else:
114-
# seasonal_order = (3, 1, 3)
115-
116110
########## This is where we start the loading of the data file ######################
117111
if isinstance(traindata, str):
118112
if traindata != '':
@@ -434,7 +428,7 @@ def Auto_Timeseries(traindata, ts_column, target, sep=',', score_type='rmse',
434428
#Defining AUTO_TIMESERIES here
435429
##########################################################
436430
module_type = 'Running' if __name__ == "__main__" else 'Imported'
437-
version_number = '0.0.20'
431+
version_number = '0.0.21'
438432
print("""Running Auto Timeseries version: %s...Call by using:
439433
auto_ts.Auto_Timeseries(traindata, ts_column,
440434
target, sep, score_type='rmse', forecast_period=5,

auto_ts/models/build_prophet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def build_prophet_model(ts_df, time_col, target, forecast_period, time_interval,
5858
time_int = 'D'
5959
elif time_interval in ['weeks', 'weekly', 'w']:
6060
time_int = 'W'
61-
seasonal_period = 52
61+
#seasonal_period = 52
6262
elif time_interval in ['qtr', 'quarter', 'q']:
6363
time_int = 'Q'
6464
elif time_interval in ['years', 'year', 'annual', 'y', 'a']:
@@ -68,7 +68,7 @@ def build_prophet_model(ts_df, time_col, target, forecast_period, time_interval,
6868
elif time_interval in ['minutes', 'minute', 'min', 'n']:
6969
time_int = 'M'
7070
elif time_interval in ['seconds', 'second', 'sec', 's']:
71-
time_interval = 'S'
71+
time_int = 'S'
7272
else:
7373
time_int = 'W'
7474
future = model.make_future_dataframe(periods=forecast_period, freq=time_int)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="auto_ts",
8-
version="0.0.20",
8+
version="0.0.21",
99
author="Ram Seshadri",
1010
# author_email="[email protected]",
1111
description="Automatically Build Multiple Time Series models fast - now with Facebook Prophet!",

0 commit comments

Comments
 (0)