liveBook · Manning

Retraining

As explained in Financial AI in Practice

Model retraining is the process of training an existing model again, typically with updated data, to refresh its learned parameters.

Retraining updates a model’s learned parameters so it can reflect changing markets, customer behavior, regulations, or fraud patterns. It may finalize a credit model after validation or incorporate outcomes from fraud investigations. section 1.4.2 section 7.4.4

Production retraining depends on validation and ongoing oversight:

  • For credit scoring, refit the model on the full WoE-coded training dataset after cross-validation establishes stable hyperparameters; preserve an isolated out-of-time hold-out set for regulatory validation. section 5.3.7
  • For fraud detection, use investigation outcomes and fresh data to update models on a schedule. Monitor performance, drift, business impact, fairness, and compliance. section 7.4.4 section 8.1.3
Listing 5.18 Training the final model on all data
X_final = df_woe.drop(columns=["target"])
y_final = df_woe["target"]

from xgboost import XGBClassifier

final_model = XGBClassifier(
    n_estimators=300,
    max_depth=4,
    learning_rate=0.2,
    n_jobs=-1,
    random_state=2023
)

final_model.fit(X_final, y_final)
print("Final model trained on the full WOE-coded dataset.")

The listing shows a final XGBoost classifier fit on the full WoE-coded dataset. section 5.3.7

How Financial AI in Practice covers it

How deep it goes
Details a full-data credit-model fit and fraud retraining controls, while reserving final regulatory validation for an isolated hold-out set.
Examples
Uses a WoE-coded credit dataset and fraud-investigation outcomes as retraining examples.
What it assumes
Assumes stable hyperparameters from cross-validation and prepared WoE-coded training data for the credit-model example.
What you can do after
Apply retraining by fitting an XGBoost classifier on the full WoE-coded training dataset after validating hyperparameters.
How it connects
Links retraining to cross-validation, model monitoring, concept drift, data drift, and champion–challenger evaluation.

Also explained in

Compare how 4 books explain retraining →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Financial AI in Practice. The section links point to the parts of the book it draws on.