Skip to content

FIX Mantis solver: align with updated Linear Probe Adapter#41

Open
bryan29-ly wants to merge 2 commits into
benchopt:mainfrom
tgnassou:fix-mantis-linearprobe
Open

FIX Mantis solver: align with updated Linear Probe Adapter#41
bryan29-ly wants to merge 2 commits into
benchopt:mainfrom
tgnassou:fix-mantis-linearprobe

Conversation

@bryan29-ly
Copy link
Copy Markdown

PR #34 updated the benchmark_utils/adapters/linear_probe.py but solvers/mantis.py was not completely adapted:

  • run() still passed max_iter=self.max_iter → crash.
  • run() read self.n_estimators, but the parameter was declared as
    n_iterators
  • penalty, C and alpha were declared in parameters but never forwarded
    to the adapter.

Fix

  • Remove the max_iter argument.
  • Rename the n_iterators parameter to n_estimators
  • Forward penalty, C and alpha to the Linear Probe Adapter

cc @ambroiseodt

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