splearn/rdd.py
def toarray(self):
        """Returns the data as numpy.array from each partition."""
        rdd = self._rdd.map(lambda x: x.toarray())
        return np.concatenate(rdd.collect())
def toarray(self):
        rdd = self._rdd.map(lambda x: x.toarray())
        return np.concatenate(rdd.collect())
def toarray ( self ) : rdd = self . _rdd . map ( lambda x : x . toarray ( ) ) return np . concatenate ( rdd . collect ( ) )
Returns the data as numpy.array from each partition.
Returns the data as numpy . array from each partition .