Error using model.fit() in Synapse Apache Spark notebook

Abdelmonim Klaii 15 Reputation points
2023-07-17T14:39:07.5533333+00:00

I have an unpredictable error.

com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0]

I would like to train a time series model using SARIMAX with four exogenous variables.

When I use model.fit(), this error appears.

model=sm.tsa.statespace.SARIMAX(train['PUISSANCE'],order=(5,1,5),exog=train[['JOUR_SEMAINE', 'Jour_F', 'HEURE_CREUSE', 'HEURE_POINTE']])
results = model.fit()
results.summary()

Please let me know what might be wrong.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,524 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Venkateswara Rao Sanaka 0 Reputation points Microsoft Employee
    2024-03-27T14:20:47.92+00:00

    On what version of Spark 3.3 are you facing the issue?

    Just run the below command, and share the output

    print(sc.version)

    I can't reproduce the issue on 3.3.1.5.2-117504963

    0 comments No comments

  2. Venkateswara Rao Sanaka 0 Reputation points Microsoft Employee
    2024-03-27T14:24:33.61+00:00

    If you are getting the below exception, please rerun the cell until it succeedes.

    com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0]

    0 comments No comments