Skip to content

Dimension error in linear regression model #324

Description

@dildar1826

Ive spot the error which might be due to version of python
He used
reg.predict(3000)
while in newer version it work as
reg.predict([[3000]))

Activity

  1. ahmadimrannn commented on Feb 24, 2026

    @ahmadimrannn

    Yes, I got this error as well, but then figured it out. Thanks for helping others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions