new chartview class, updated db locations
This commit is contained in:
parent
8dfe81ab61
commit
e3a09e406d
@ -86,7 +86,7 @@ class BitcoinTrendAnalysis:
|
||||
ax.legend()
|
||||
ax.grid(True)
|
||||
|
||||
engine = create_engine('sqlite:///bitcoin_trends.db')
|
||||
engine = create_engine('sqlite:///databases/bitcoin_trends.db')
|
||||
Base.metadata.create_all(engine)
|
||||
|
||||
Session = sessionmaker(bind=engine)
|
||||
|
||||
@ -35,7 +35,7 @@ if __name__ == "__main__":
|
||||
|
||||
analyzer = ArticleAnalyzer()
|
||||
|
||||
engine = create_engine('sqlite:///article_analysis.db')
|
||||
engine = create_engine('sqlite:///databases/article_analysis.db')
|
||||
Session = sessionmaker(bind=engine)
|
||||
session = Session()
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
from bitcoin_trend_analysis import BitcoinTrendAnalysis
|
||||
|
||||
if __name__ == "__main__":
|
||||
ma = BitcoinTrendAnalysis(db_path='bitcoin_historical_data.db')
|
||||
ma = BitcoinTrendAnalysis(db_path='databases/bitcoin_historical_data.db')
|
||||
ma.load_data()
|
||||
ma.analyze_trends_peaks(distance=1, prominence_factor=0.1)
|
||||
|
||||
@ -4,7 +4,7 @@ from sklearn.metrics import confusion_matrix
|
||||
|
||||
if __name__ == "__main__":
|
||||
model = load_model('models/model_2025-01-21_04-49-43.h5')
|
||||
predictor = BitcoinPricePredictor(model=model, db_path='bitcoin_historical_data.db')
|
||||
predictor = BitcoinPricePredictor(model=model, db_path='databases/bitcoin_historical_data.db')
|
||||
|
||||
missing_data = predictor.load_new_data_from_model()
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ import sqlite3
|
||||
from datetime import datetime
|
||||
|
||||
# Specify the database file path
|
||||
db_path = 'bitcoin_historical_data.db'
|
||||
db_path = 'databases/bitcoin_historical_data.db'
|
||||
|
||||
# Create a connection to the database
|
||||
connection = sqlite3.connect(db_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user