Skip to content

Commit

Permalink
Fix : StockPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
xxoznge committed Nov 19, 2023
1 parent 451f52d commit df07421
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit df07421

Please sign in to comment.