To update the post: • First problem: This problem can be solved by adding a epsilon(very small value to 0 value). Because in poisson model, it doesn't allow the y value to be zero. But in general, it doesn't have this requirement.
But now I encounter another problem that in every GLM model. "Values to assemble cannot be null" <http://apache-spark-user-list.1001560.n3.nabble.com/file/n27164/P3.png> I've found the code in https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/feature/VectorAssembler.scala <https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/feature/VectorAssembler.scala> <http://apache-spark-user-list.1001560.n3.nabble.com/file/n27164/p4.png> Can you guys explain what that mean? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-2-0-0-GLM-problem-tp27145p27164.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org