package sklearn
Module Validation.ParameterSource
Source
val create :
name:Py.Object.t ->
kind:Py.Object.t ->
default:Py.Object.t ->
annotation:Py.Object.t ->
unit ->
tRepresents a parameter in a function signature.
Has the following public attributes:
* name : str The name of the parameter as a string. * default : object The default value for the parameter if specified. If the parameter has no default value, this attribute is set to `Parameter.empty`. * annotation The annotation for the parameter if specified. If the parameter has no annotation, this attribute is set to `Parameter.empty`. * kind : str Describes how argument values are bound to the parameter. Possible values: `Parameter.POSITIONAL_ONLY`, `Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`, `Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
Source
val replace :
?name:Py.Object.t ->
?kind:Py.Object.t ->
?annotation:Py.Object.t ->
?default:Py.Object.t ->
[> tag ] Obj.t ->
Py.Object.tCreates a customized copy of the Parameter.
Pretty-print the object to a formatter.