Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Change Linear SVM lambda_ parameter to regularization - #255

Closed
gregorybchris wants to merge 3 commits into
microsoft:masterfrom
gregorybchris:chgrego/svm-lambda
Closed

Change Linear SVM lambda_ parameter to regularization#255
gregorybchris wants to merge 3 commits into
microsoft:masterfrom
gregorybchris:chgrego/svm-lambda

Conversation

@gregorybchris

@gregorybchris gregorybchris commented Sep 5, 2019

Copy link
Copy Markdown

Fixes #254

The recently added Linear SVM learner uses the parameter name lambda_ to avoid Python reserved word conflicts with lambda. This PR changes lambda_ to l2_regularization. This is more descriptive and avoids confusion where the trailing underscore could be mistaken as indicating a private variable.

:param caching: Whether trainer should cache input training data.

:param lambda_: Regularizer constant.
:param regularization: Regularizer constant.

@ganik ganik Sep 6, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 files are auto generated from manifest.json. You could use manifest_diff.json to specify renaming of the parameter then re-run entrypoint_compiler tools with generate options set to True. There are many examples in manifest_diff.json how to do renaming. #Resolved

@ganik

ganik commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

duplicate of #259

@ganik ganik closed this Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linear SVM lambda parameter name should be public

2 participants