-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GSoC] Added DistributionType
to Experiment API
#2377
[GSoC] Added DistributionType
to Experiment API
#2377
Conversation
// Check that only one of ParameterType or DistributionType is specified
if (param.ParameterType != "" && param.DistributionType != "") ||
(param.ParameterType == "" && param.DistributionType == "") {
allErrs = append(allErrs, field.Invalid(parametersPath.Index(i).Child("parameterType"),
param.ParameterType, "either parameterType or distributionType must be specified, but not both"))
} at katib/pkg/webhook/v1beta1/experiment/validator/validator.go Lines 254 to 256 in 154a85b
|
/area gsoc |
DistributionLogUniform Distribution = "logUniform" | ||
DistributionNormal Distribution = "normal" | ||
DistributionLogNormal Distribution = "logNormal" | ||
DistributionCategorical Distribution = "categorical" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, removed Categorical from Distribution
type.
03b2e54
to
00f288e
Compare
Signed-off-by: Shashank Mittal <[email protected]> modified feasibleSpace Removed Categorical from Distribution
891879f
to
8a20c60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
DistributionType
toParameterSpec
inpkg/apis/controller/experiments/v1beta1/experiment_types.go
.DistributionType
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2374
Checklist: