Prepare the data
Use consented or synthetic messages, strip identifiers and split complete threads together.
Organise messages. Keep recovery easy.
Email categorisation predicts user-defined folders from message content. Thread duplication, private text and incorrectly hidden messages are practical concerns from the start.
Learning concept · Not a validated service
Email categorisation predicts user-defined folders from message content. Thread duplication, private text and incorrectly hidden messages are practical concerns from the start.
A possible application for shared-inbox teams: Help small teams organise a shared inbox while retaining a complete all-mail view. This extension is not delivered by the supplied starter.
Use consented or synthetic messages, strip identifiers and split complete threads together.
Fit a text-classification pipeline with an uncertain category and user-defined labels.
Measure per-folder recall and inspect important messages placed in the wrong folder.
Suggest reversible labels without deleting messages or changing access permissions.
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 supplied starter has no email text, vectoriser or folder labels. 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 small teams organise a shared inbox while retaining a complete all-mail view.
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.