splearn/linear_model/base.py
def _spark_predict(self, cls, X, *args, **kwargs):
        """Wraps a Scikit-learn Linear model's predict method to use with RDD
        input.

        Parameters
        ----------
        cls : class object
            The sklearn linear model's class to wrap.
        Z : ArrayRDD
            The distributed data to predict in a DictRDD.

        Returns
        -------
        self: the wrapped class
        """
        return X.map(lambda X: super(cls, self).predict(X, *args, **kwargs))
def _spark_predict(self, cls, X, *args, **kwargs):
        return X.map(lambda X: super(cls, self).predict(X, *args, **kwargs))
def _spark_predict ( self , cls , X , * args , * * kwargs ) : return X . map ( lambda X : super ( cls , self ) . predict ( X , * args , * * kwargs ) )
Wraps a Scikit-learn Linear model's predict method to use with RDD
        input.

        Parameters
        ----------
        cls : class object
            The sklearn linear model's class to wrap.
        Z : ArrayRDD
            The distributed data to predict in a DictRDD.

        Returns
        -------
        self: the wrapped class
Wraps a Scikit - learn Linear model s predict method to use with RDD input .