generate_cf_finite_optimized
- oasis_stat.generate_cf_finite_optimized(X, randSeed=0, numRandInits=10)[source]
Generates optimized column and row embeddings for the finite sample p-value. Tries multiple random initializations and returns the embeddings that maximize the finite sample p-value on the given X.
- Parameters:
X (numpy.ndarray) – The input count matrix, IxJ.
randSeed (int, optional) – The random seed for reproducibility. Default is 0.
numRandInits (int, optional) – The number of random initializations to try. Default is 10.
- Returns:
- A tuple containing the column embedding vector (c) and the row embedding vector (f).
c (numpy.ndarray): The column embedding vector, J-dimensional.
f (numpy.ndarray): The row embedding vector, I-dimensional.
- Return type:
tuple
Description
Generates optimized column and row embeddings for the finite sample p-value. Tries multiple random initializations and returns the embeddings that maximize the finite sample p-value on the given X.