Class PermutationRoutines
- Namespace
- NeuralNetworks.Core
- Assembly
- NeuralNetworks.dll
Provides routines for randomly permuting samples along the first dimension of multidimensional arrays, including in-place and cloned permutations, and synchronized permutations of paired feature and label arrays.
public static class PermutationRoutines
- Inheritance
-
PermutationRoutines
- Inherited Members
Remarks
Implements Fisher-Yates-style row swaps to keep paired datasets aligned during shuffling. Supports specialized overloads for float and int array shapes and a generic dispatcher for supported type pairs.
Methods
Permute(float[,], Random?)
public static float[,] Permute(this float[,] source, Random? random = null)
Parameters
Returns
- float[,]
Permute(float[,], float[,], Random?)
public static (float[,] xPermuted, float[,] yPermuted) Permute(float[,] x, float[,] y, Random? random = null)
Parameters
Returns
PermuteInPlace(int[,], Random?)
public static void PermuteInPlace(this int[,] source, Random? random = null)
Parameters
PermuteInPlace(float[,,,], Random?)
public static void PermuteInPlace(this float[,,,] source, Random? random = null)
Parameters
PermuteInPlace(float[,,], Random?)
public static void PermuteInPlace(this float[,,] source, Random? random = null)
Parameters
PermuteInPlace(float[,], Random?)
public static void PermuteInPlace(this float[,] source, Random? random = null)
Parameters
PermuteInPlaceTogetherWith(int[,], float[,], Random?)
public static void PermuteInPlaceTogetherWith(this int[,] source, float[,] y, Random? random = null)
Parameters
PermuteInPlaceTogetherWith(float[,,,], float[,,,], Random?)
public static void PermuteInPlaceTogetherWith(this float[,,,] source, float[,,,] y, Random? random = null)
Parameters
PermuteInPlaceTogetherWith(float[,,,], float[,], Random?)
public static void PermuteInPlaceTogetherWith(this float[,,,] source, float[,] y, Random? random = null)
Parameters
PermuteInPlaceTogetherWith(float[,,], float[,], Random?)
public static void PermuteInPlaceTogetherWith(this float[,,] source, float[,] y, Random? random = null)
Parameters
PermuteInPlaceTogetherWith(float[,], float[,], Random?)
public static void PermuteInPlaceTogetherWith(this float[,] source, float[,] y, Random? random = null)
Parameters
PermuteInPlaceTogetherWith<TX, TY>(TX, TY, Random?)
public static void PermuteInPlaceTogetherWith<TX, TY>(TX matrix1, TY matrix2, Random? random = null) where TX : notnull where TY : notnull
Parameters
matrix1TXmatrix2TYrandomRandom
Type Parameters
TXTY
PermuteTogetherWith(float[,], float[,], Random?)
public static void PermuteTogetherWith(float[,] x, float[,] y, Random? random = null)