Table of Contents

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

source float[,]
random Random

Returns

float[,]

Permute(float[,], float[,], Random?)

public static (float[,] xPermuted, float[,] yPermuted) Permute(float[,] x, float[,] y, Random? random = null)

Parameters

x float[,]
y float[,]
random Random

Returns

(float[,] Set1, float[,] Set2)

PermuteInPlace(int[,], Random?)

public static void PermuteInPlace(this int[,] source, Random? random = null)

Parameters

source int[,]
random Random

PermuteInPlace(float[,,,], Random?)

public static void PermuteInPlace(this float[,,,] source, Random? random = null)

Parameters

source float[,,,]
random Random

PermuteInPlace(float[,,], Random?)

public static void PermuteInPlace(this float[,,] source, Random? random = null)

Parameters

source float[,,]
random Random

PermuteInPlace(float[,], Random?)

public static void PermuteInPlace(this float[,] source, Random? random = null)

Parameters

source float[,]
random Random

PermuteInPlaceTogetherWith(int[,], float[,], Random?)

public static void PermuteInPlaceTogetherWith(this int[,] source, float[,] y, Random? random = null)

Parameters

source int[,]
y float[,]
random Random

PermuteInPlaceTogetherWith(float[,,,], float[,,,], Random?)

public static void PermuteInPlaceTogetherWith(this float[,,,] source, float[,,,] y, Random? random = null)

Parameters

source float[,,,]
y float[,,,]
random Random

PermuteInPlaceTogetherWith(float[,,,], float[,], Random?)

public static void PermuteInPlaceTogetherWith(this float[,,,] source, float[,] y, Random? random = null)

Parameters

source float[,,,]
y float[,]
random Random

PermuteInPlaceTogetherWith(float[,,], float[,], Random?)

public static void PermuteInPlaceTogetherWith(this float[,,] source, float[,] y, Random? random = null)

Parameters

source float[,,]
y float[,]
random Random

PermuteInPlaceTogetherWith(float[,], float[,], Random?)

public static void PermuteInPlaceTogetherWith(this float[,] source, float[,] y, Random? random = null)

Parameters

source float[,]
y float[,]
random Random

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

matrix1 TX
matrix2 TY
random Random

Type Parameters

TX
TY

PermuteTogetherWith(float[,], float[,], Random?)

public static void PermuteTogetherWith(float[,] x, float[,] y, Random? random = null)

Parameters

x float[,]
y float[,]
random Random