When adding unseen variables/features, the feature matrix gets efficiently resized to accommodate the new entry with numpy.ndarray.resize. However, this command can possibly shrink
an array, which is never desired here. We now ensure that the
feature matrix will grow or keep the its size in both dimensions at each resize operation.
When adding unseen variables/features, the feature matrix gets efficiently resized to accommodate the new entry with
numpy.ndarray.resize
. However, this command can possibly shrink an array, which is never desired here. We now ensure that the feature matrix will grow or keep the its size in both dimensions at each resize operation.