def _compare_GLMs(self, skl, spark):
skl_weights = Vectors.dense(skl.coef_.flatten())<EOL>self.assertEqual(skl_weights, spark.coefficients)<EOL>self.assertEqual(skl.intercept_, spark.intercept)<EOL>
Compare weights, intercept of sklearn, Spark GLMs