You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In certain cases, a stream may continue to get constant values for a while. Sometimes, in this case xmin=xmax resulting in l=nan, thereby leading to an exception in the following code:
def _cut(self, X, S, parent=None, side='l'):
# Find max and min over all d dimensions
xmax = X[S].max(axis=0)
xmin = X[S].min(axis=0)
# Compute l
l = xmax - xmin
l /= l.sum()
Any suggestions to deal with this "special case" gracefully!
The text was updated successfully, but these errors were encountered:
In this case, you would essentially skip the tree construction algorithm and create a root node that is also a leaf that contains all the points in the set.
In certain cases, a stream may continue to get constant values for a while. Sometimes, in this case xmin=xmax resulting in l=nan, thereby leading to an exception in the following code:
def _cut(self, X, S, parent=None, side='l'):
# Find max and min over all d dimensions
xmax = X[S].max(axis=0)
xmin = X[S].min(axis=0)
Any suggestions to deal with this "special case" gracefully!
The text was updated successfully, but these errors were encountered: