init
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user