Skip to content

Commit

Permalink
SYNV2
Browse files Browse the repository at this point in the history
  • Loading branch information
RodneyFinkel committed Sep 25, 2023
1 parent 8ad2bb5 commit d0d4ff6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified __pycache__/stock_screener.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
company = cells[1].text.strip()
sector = cells[3].text.strip()
sp500.append({'ticker': ticker, 'company': company, 'sector': sector})
pprint(sp500)



def get_sp500_stocks():
Expand Down
2 changes: 1 addition & 1 deletion stock_screener.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def train_models(self):

#Create and train model
model = create_model(train_data)
model.fit(train_data, train_labels, epochs=10)
model.fit(train_data, train_labels, epochs=20)
self.models[stock.ticker] = model # models needs to be defined as a StockScreener attribute, namely a dictionary

# Predict whether new stocks will pass filters (new_stocks gets passed as filtered_stocks in app.py)
Expand Down

0 comments on commit d0d4ff6

Please sign in to comment.