Skip to content

Commit

Permalink
Merge pull request #32 from Enraged-Dun-Cookie-Development-Team/auto-…
Browse files Browse the repository at this point in the history
…scheduler-v0.1

增大时间间隔;先预测2个小时的数据点
  • Loading branch information
YoungHector authored Oct 19, 2024
2 parents f1b6717 + d43a41a commit aed18d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf/auto_sche.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"daily_preprocess_time": {
"hour": 20,
"hour": 21,
"minute": 0,
"second": 0
},
Expand Down
2 changes: 1 addition & 1 deletion src/_data_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def limit_cpu(interval):
messager.send_to_bot_shortcut('开始预测')

for i in range(0, len(X_list), batch_size):
time.sleep(0.02)
time.sleep(0.05)
batch = X_list[i:i + batch_size]
batch_predictions = self.model.predict(batch)
predictions.extend(batch_predictions)
Expand Down
2 changes: 1 addition & 1 deletion src/auto_sche/model_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def feature_of_time(self):
# scheduled_time += datetime.timedelta(days=1)

# 生成未来24小时的时间点,从凌晨4点开始,到凌晨4点结束(不包括)
end_time = scheduled_time + datetime.timedelta(days=1)
end_time = scheduled_time + datetime.timedelta(hours=2)
time_points = self._generate_time_points(scheduled_time, end_time)

return time_points
Expand Down

0 comments on commit aed18d8

Please sign in to comment.