Skip to content

Commit f882dfc

Browse files
Update run.py
1 parent 39bc446 commit f882dfc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • machine_learning/forecasting

machine_learning/forecasting/run.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from warnings import simplefilter
1515

16-
import logging
1716
import matplotlib.pyplot as plt
1817
import numpy as np
1918
import pandas as pd
@@ -22,9 +21,6 @@
2221
from sklearn.svm import SVR
2322
from statsmodels.tsa.statespace.sarimax import SARIMAX
2423

25-
logging.basicConfig(level=logging.Info)
26-
logger = logging.getLogger(__name__)
27-
2824

2925
def linear_regression_prediction(
3026
train_dt: list, train_usr: list, train_mtch: list, test_dt: list, test_mtch: list
@@ -205,6 +201,6 @@ def plot_forecast(actual, predictions):
205201

206202
# check the safety of today's data
207203
not_str = "" if data_safety_checker(res_vote, test_user[0]) else "not "
208-
logger.info(f"Today's data is {not_str}safe.")
204+
print(f"Today's data is {not_str}safe.")
209205

210206
plot_forecast(train_user, res_vote)

0 commit comments

Comments
 (0)