package sklearn

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val of_pyobject : Py.Object.t -> t
val to_pyobject : t -> Py.Object.t
val create : unit -> t

Mixin for kernels which are normalized: k(X, X)=1.

.. versionadded:: 0.18

val diag : x:Py.Object.t -> t -> Ndarray.t

Returns the diagonal of the kernel k(X, X).

The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated.

Parameters ---------- X : sequence of length n_samples Left argument of the returned kernel k(X, Y)

Returns ------- K_diag : array, shape (n_samples_X,) Diagonal of kernel k(X, X)

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 : Stdlib.Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.