Hi Xiaomeng,
Have you tried to confirm the DataFrame contents before fitting? like
assembleddata.show()
before fitting.
Regards,
Yuhao
2016-12-21 10:05 GMT-08:00 Xiaomeng Wan :
> Hi,
>
> I am running linear regression on a dataframe and get the following error:
>
>
Hi,
I am running linear regression on a dataframe and get the following error:
Exception in thread "main" java.lang.AssertionError: assertion failed:
Training dataset is empty.
at scala.Predef$.assert(Predef.scala:170)
at
See https://issues.apache.org/jira/browse/SPARK-17588
On Wed, Oct 12, 2016 at 9:07 PM Meeraj Kunnumpurath <
mee...@servicesymphony.com> wrote:
> If I drop the last feature on the third model, the error seems to go away.
>
> On Wed, Oct 12, 2016 at 11:52 PM, Meeraj Kunnumpurath <
>
If I drop the last feature on the third model, the error seems to go away.
On Wed, Oct 12, 2016 at 11:52 PM, Meeraj Kunnumpurath <
mee...@servicesymphony.com> wrote:
> Hello,
>
> I have some code trying to compare linear regression coefficients with
> three sets of features, as shown below. On
Hello,
I have some code trying to compare linear regression coefficients with
three sets of features, as shown below. On the third one, I get an
assertion error.
This is the code,
object MultipleRegression extends App {
val spark = SparkSession.builder().appName("Regression Model