#NEWLINE# def __init__( self , num_rows , num_cols , X , d ) : #NEWLINE# #INDENT# WARPDecomposition . __init__ ( self , num_rows , num_cols , d ) #NEWLINE# self . W = ( ( d ** ( - 0.5 ) ) * np . random . random_sample ( ( X . shape [ 1 ] , d ) ) ) #NEWLINE# self . X = X #NEWLINE# self . is_sparse = isinstance ( X , scipy . sparse . csr_matrix )