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

dev
Steve L. Nyemba 5 years ago
parent f1076f441b
commit f91a58e534

@ -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

Loading…
Cancel
Save