79140577

Date: 2024-10-30 10:08:58
Score: 0.5
Natty:
Report link

You do the following step to your training data.

# Add a constant for the intercept
X_count = sm.add_constant(X_count)
X_zero = sm.add_constant(X_zero)

However, you do not do it to your testing data. I believe that can be your problem, as the dimensions are one off according to your error.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arend-Jan Tissing