Skip to content

Commit

Permalink
Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rethakgetse-Manaka committed Sep 25, 2024
1 parent 79a7d2a commit 181565b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-code/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_prediction(day_of_week, month, day_of_month, is_weekend, special_event,
def get_hourly_predictions(day_of_week, hour, scaler, day_name):
try:
# Prepare input data: [day_of_week, hour]
sample_input = np.array([[day_of_week, hour]]) # Example input
sample_input = np.array([[day_of_week, hour]])

# Scale the hour feature using the provided scaler
hour_scaled = scaler.transform(sample_input[:, -1].reshape(-1, 1)) # Scale the hour feature
Expand Down

0 comments on commit 181565b

Please sign in to comment.