Prepare the data
Use permitted aggregate road measurements without personal travel traces.
Estimate congestion. Respect time and location.
Traffic forecasting predicts a defined quantity such as segment speed or vehicle count. Splits must account for connected road segments, holidays and incidents.
Learning concept · Not a validated service
Traffic forecasting predicts a defined quantity such as segment speed or vehicle count. Splits must account for connected road segments, holidays and incidents.
A possible application for campus transport planners: Help campus transport planners review likely congestion windows. This extension is not delivered by the supplied starter.
Use permitted aggregate road measurements without personal travel traces.
Train a short-horizon lag-feature baseline with calendar inputs and a persistence comparator.
Evaluate future periods and held-out segments, reporting rush-hour and incident errors separately.
Show planning estimates with stale-data warnings and no automatic traffic-control actions.
The supplied starter creates 800 synthetic binary-classification rows with ten numeric features. It makes a stratified train/test split, fits a scaled RandomForestClassifier pipeline and prints a classification report.
model = Pipeline(
steps=[
("scale", StandardScaler()),
("classifier", RandomForestClassifier(
n_estimators=250, random_state=RANDOM_STATE)),
]
)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
print(classification_report(y_test, predictions))The source contains no traffic measurements or spatiotemporal forecasting. Synthetic binary classification does not establish performance on the proposed application. The source report uses one split; it supplies no deployment or real-world validation.
Proposed extension: Help campus transport planners review likely congestion windows.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.