Tensor.CosineSimilarity Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| CosineSimilarity<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
Kosinová podobnost výpočetních prostředků mezi |
| CosineSimilarity<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Kosinová podobnost výpočetních prostředků mezi |
CosineSimilarity<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
- Zdroj:
- TensorExtensions.cs
- Zdroj:
- TensorExtensions.cs
Kosinová podobnost výpočetních prostředků mezi x a y.
public:
generic <typename T>
where T : System::Numerics::IRootFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ CosineSimilarity(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static System.Numerics.Tensors.Tensor<T> CosineSimilarity<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IRootFunctions<T>;
static member CosineSimilarity : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IRootFunctions<'T>)> (requires 'T :> System.Numerics.IRootFunctions<'T>)
Public Function CosineSimilarity(Of T As IRootFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)
Parametry typu
- T
Parametry
Návraty
Platí pro
CosineSimilarity<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Zdroj:
- TensorExtensions.cs
- Zdroj:
- TensorExtensions.cs
Kosinová podobnost výpočetních prostředků mezi x a y.
public:
generic <typename T>
where T : System::Numerics::IRootFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ CosineSimilarity(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosineSimilarity<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T>;
static member CosineSimilarity : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IRootFunctions<'T>)
Public Function CosineSimilarity(Of T As IRootFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Parametry typu
- T
Parametry
- destination
- TensorSpan<T>