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

Abdelmonim Klaii 20 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.
5,039 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sebastian Bönig 10 Reputation points
    2024-06-10T14:11:00.5933333+00:00

    I found that using the parameter disp=False worked for me on a Microsoft Fabric notebook

    model.fit(disp=False)
    
    2 people found this answer helpful.

  2. 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

  3. 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.