Page MenuHomec4science

rp.py
No OneTemporary

File Metadata

Created
Sun, May 5, 21:42
# Random Projections
import numpy as np
from weightmatrices.utils import utils
def get_weightmatrices_rp(data_matrix, n_h):
N = data_matrix.shape[1]
W = np.random.randn(n_h, N)
W = utils.normalise_weightmatrix(W)
return W

Event Timeline