Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Greemreb
Regular Visitor

Regarding ML for forecast using ARIMA model

Hello everyone,

I'm using a code written in Jupyter Notebook for forecasting demand and on the Jupyter Notebook it's working just fine, When I tried to streamline the process by using this code in synapse notebook inside the Fabric environment, I end up with the following error

 

 

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

 

 

I tried some solutions for my assuption which are>

1-After some research, I understand that the Fabric Notebook is running with Pyspark engine which is an architecture for disruption for Big Data. Which is not good for using regular Python packages such as statsmodels that I'm using for my model. To solve this I changed the setting of the workspace to use only 1 cluster which theoretically should behave like regular Python Environment

 

2- I thought that the environment is missing some dependencies, so I added all the needed dependencies for statsmodels in the workplace but also it didn't work.

I would be thankful if anyone can help with this. 

6 REPLIES 6
BoSe
Frequent Visitor

I found that using the parameter disp=False worked for me.

 

model.fit(disp=False)

 

BoSe
Frequent Visitor

Did you find a solution to that issue?

GeethaT-MSFT
Community Support
Community Support

Hi @Greemreb Thanks for posting your question in Microsoft Fabric Community

Can you please share some screenshots of the error and the exact steps you have followed 

 

Regards

Geetha

Hi, I have encountered a similar issue.  The code works fine in Juptyer Notebooks but not when in Fabric environment.  Mine looks like this:

Angliss1_0-1710939624633.png

Any help would be much appreciated as struggling to find any answers

Anonymous
Not applicable

Hi!

I saw the answer in another page. Run this on a cell

 

import com.fasterxml.jackson.core.JsonParser.Feature;
import com.fasterxml.jackson.databind.ObjectMapper;

StatusResponses loginValidator = null;

ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(Feature.AUTO_CLOSE_SOURCE, true);

try {
    String res = result.getResponseAsString();//{"status":"true","msg":"success"}
    loginValidator = objectMapper.readValue(res, StatusResponses.class);//replaced result.getResponseAsString() with res
} catch (Exception e) {
    e.printStackTrace();
} 

 
the autor doesn't know how it worked, but it worked.

 

It worked for me. I had the same problem

Thanks for the advice!  I'm getting this error message when running that, did you come across anything similar?

Angliss1_0-1710948676455.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors