package sklearn

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Kernels.NormalizedKernelMixinSource

Sourcetype tag = [
  1. | `NormalizedKernelMixin
]
Sourcetype t = [ `NormalizedKernelMixin | `Object ] Obj.t
Sourceval of_pyobject : Py.Object.t -> t
Sourceval to_pyobject : [> tag ] Obj.t -> Py.Object.t
Sourceval create : unit -> t

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

.. versionadded:: 0.18

Sourceval diag : x:Py.Object.t -> [> tag ] Obj.t -> [> `ArrayLike ] Np.Obj.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)

Sourceval to_string : t -> string

Print the object to a human-readable representation.

Sourceval show : t -> string

Print the object to a human-readable representation.

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

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.