limitations on the matrix shape (feature space limitation) per partition

This commit is contained in:
Steve Nyemba 2020-04-14 15:52:55 -05:00
parent f1076f441b
commit f91a58e534
1 changed files with 5 additions and 3 deletions

View File

@ -167,9 +167,11 @@ class Binary :
# Let's treat the case of missing values i.e nulls
#
row_count,col_count = column.size,values.size
if row_count * col_count > size and row_count < size:
N = np.divide(size,row_count).astype(int)
i = np.random.choice(col_count,N)
# if row_count * col_count > size and row_count < size:
if col_count > size :
# N = np.divide(size,row_count).astype(int)
# N =
i = np.random.choice(col_count,size)
values = values[-i]
col_count = N