Skip to content

fix: make label smoothing delta configurable#12

Open
harens wants to merge 1 commit into
Thijsvanede:mainfrom
harens:delta-fix
Open

fix: make label smoothing delta configurable#12
harens wants to merge 1 commit into
Thijsvanede:mainfrom
harens:delta-fix

Conversation

@harens
Copy link
Copy Markdown

@harens harens commented Apr 23, 2026

Summary

Thread the label smoothing delta parameter through DeepCASE training so it is configurable instead of hardcoded.

Changes

  • pass CLI --delta into ContextBuilder.fit
  • add delta to ContextBuilder.fit_predict
  • expose delta on DeepCASE wrapper methods
  • use the passed delta when constructing LabelSmoothing
  • document delta in the usage example

Why

Previously, LabelSmoothing always received a hardcoded value of 0.1, even though a CLI --delta option already existed. This change makes training behaviour consistent with the exposed interface and allows callers to tune label smoothing explicitly.

Notes

  • default behaviour is unchanged: delta still defaults to 0.1
  • this is a plumbing/documentation change; no algorithmic behaviour changes unless a non-default delta is provided

Thread the ContextBuilder delta parameter through training so LabelSmoothing no longer receives a hardcoded value.

Pass the existing CLI --delta option into ContextBuilder.fit and expose delta on fit_predict and the DeepCASE wrapper methods.

Document the delta parameter in the code usage example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant