generate_cf_asymp_optimized
- oasis_stat.generate_cf_asymp_optimized(X)[source]
Generates the optimal column and row embeddings for the asymptotic p-value.
- Parameters:
X (numpy.ndarray) – The input count matrix, IxJ.
- Returns:
- A tuple containing the column embedding vector (c) and the row embedding vector (f).
c (numpy.ndarray): The length J column embedding vector.
f (numpy.ndarray): The length I row embedding vector.
- Return type:
tuple
Description
Generates optimized column and row embeddings for the asymptotic p-value on the input data. Tries multiple random initializations and returns the embeddings that maximize the asymp sample p-value on the given X.