Commit 2de92635 authored by Jean-Didier Totow's avatar Jean-Didier Totow
Browse files

no dataset error management

parent 61ecea75
......@@ -313,7 +313,9 @@ class ForecastingManager():
#try:
application = model.getApplication()
response = self.prepareDataset(application)
#print(response)
if not 'url' in response:
print("Cannot create dataset")
return None
model.setDatasetUrl(response['url'])
#model.setDatasetUrl("/home/jean-didier/Projects/morphemic/Morphemic_TimeSeries/datasets/ds.csv")
model.setDatasetCreationTime(time.time())
......@@ -373,10 +375,10 @@ class ForecastingManager():
#time.sleep(100)
#self.simulateForcasting()
while True:
#for key, model in self.applications.items():
# if model.getMLModelStatus() == "NotExist":
# self.trainModel(model)
time.sleep(10)
for key, model in self.applications.items():
if model.getMLModelStatus() == "NotExist":
self.trainModel(model)
time.sleep(60)
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment