Skip to content
Advertisement

why i can’t predict my x value in linear regression model using reg.predict ( )

JavaScript

Advertisement

Answer

You provide a scalar value to .predict method. You need to provide a 2-dimensional array:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement