This commit is contained in:
dsyoon
2022-08-10 22:44:50 +09:00
parent f61704ee35
commit 05102f6845
3 changed files with 19 additions and 58 deletions

View File

@@ -143,7 +143,8 @@ class Simulation (HTS):
def simulate(self, stock_code, today, method="rule"):
if method == "answer":
self.labelMaker.makeCandidate(stock_code, today, view=True)
#self.labelMaker.makeCandidate(stock_code, today, view=True)
self.labelMaker.showLabels(stock_code, today)
else:
if method == "ml":
LAST_DATA = self.stock2Vector.getLastData(stock_code, today, n=1)
@@ -174,8 +175,8 @@ if __name__ == "__main__":
# to check bying
stock_codes = {
"122630": ['20220809'],
"252670": ['20220809'],
"122630": ['20220810'],
"252670": ['20220810'],
}
method = "answer" # "rule", "ml", "answer"