def _spark_predict(self, cls, X, *args, **kwargs):
return X.map(lambda X: super(cls, self).predict(X, *args, **kwargs))<EOL>
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