From df0742119f8078250821879e462bcd3817013287 Mon Sep 17 00:00:00 2001 From: Sojung Lee <90453158+xxoznge@users.noreply.github.com> Date: Sun, 19 Nov 2023 14:40:34 +0900 Subject: [PATCH] Fix : StockPrice --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index dfe2b6e..b89c766 100644 --- a/app.py +++ b/app.py @@ -30,7 +30,7 @@ def predictPrice(): # 주식 종목 지정 필수 ticker = request.json.get("ticker") - end_date = datetime.now() + end_date = datetime.datetime.now() start_date = end_date - timedelta(days=3650) data = yf.download(ticker, start=start_date, end=end_date) @@ -236,7 +236,6 @@ def calculate_williams_r(closing_prices, period=14): # 모델 컴파일 model.compile(optimizer='adam', loss='mean_squared_error') - # 모델 훈련 model.fit(X_train, y_train, epochs=100, batch_size=32, validation_split=0.2)