package sklearn

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `Parameter
]
type t = [ `Object | `Parameter ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val create : name:Py.Object.t -> kind:Py.Object.t -> default:Py.Object.t -> annotation:Py.Object.t -> unit -> t

Represents 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`.

val replace : ?name:Py.Object.t -> ?kind:Py.Object.t -> ?annotation:Py.Object.t -> ?default:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Creates a customized copy of the Parameter.

val to_string : t -> string

Print the object to a human-readable representation.

val show : t -> string

Print the object to a human-readable representation.

val pp : Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.