Skip to content

Enable bias by default for linear models - #30

Closed
Same0620 wants to merge 1 commit into
masterfrom
fix/default-liblinear-bias
Closed

Enable bias by default for linear models#30
Same0620 wants to merge 1 commit into
masterfrom
fix/default-liblinear-bias

Conversation

@Same0620

@Same0620 Same0620 commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Use 1.0 as the default bias when -B is omitted.
  • Add the bias feature column after resolving the effective bias value.
  • Preserve -B -1 as an explicit way to disable the bias term.

Motivation

The previous default of -1.0 disabled the bias term when users did not provide -B. Simply changing the default value was insufficient because the bias feature column was only added inside the explicit -B branch. Moving that check after option parsing makes the default behavior equivalent to passing -B 1 while preserving existing explicit settings.

Validation

  • python -m black --check libmultilabel/linear/linear.py
  • Ran a local smoke test covering default, explicit, and disabled bias settings, including one-vs-rest training and prediction.

@Same0620
Same0620 force-pushed the fix/default-liblinear-bias branch from df4db99 to 510574c Compare August 12, 2026 12:16
@Same0620

Copy link
Copy Markdown
Author

Superseded by #31, which uses a fork-based branch.

@Same0620 Same0620 closed this Aug 14, 2026
@Same0620
Same0620 deleted the fix/default-liblinear-bias branch August 14, 2026 13:58
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