Skip main navigation (Press Enter).
Log in
Toggle navigation
Log in
Community
Topic Groups
Champions
Directory
Program overview
Rising Champions
IBM Champions group
User Groups
Directory
Program overview
Events
Dev Days
Conference
Community events
User Groups events
All TechXchange events
Participate
TechXchange Group
Welcome Corner
Blogging
Member directory
Community leaders
Resources
Badge Program
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
Global AI and Data Science
×
Global AI & Data Science
Train, tune and distribute models with generative AI and machine learning capabilities
Group Home
Threads
4.1K
Blogs
916
Upcoming Events
0
Library
370
Members
28.8K
View Only
Share
Share on LinkedIn
Share on X
Share on Facebook
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 4 is different from 1)
A K
Mon July 27, 2020 11:20 AM
The above error occurs when i run the following code: x=df[['highwaympg']] z=df[['horsepower','curbweight','enginesize','highwaympg']] ...
A K
Wed July 29, 2020 10:03 AM
Anyone? Please do help if you see this question. ------------------------------ A K ------------------------------ ...
1.
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 4 is different from 1)
Like
A K
Posted Mon July 27, 2020 11:20 AM
Reply
Options Dropdown
The above error occurs when i run the following code:
x=df[['highwaympg']]
z=df[['horsepower','curbweight','enginesize','highwaympg']]
lm.fit(z,df['price'])
yhat=lm.predict(x)
------------------------------
A K
------------------------------
#GlobalAIandDataScience
#GlobalDataScience
2.
RE: ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 4 is different from 1)
Like
A K
Posted Wed July 29, 2020 10:03 AM
Reply
Options Dropdown
Anyone? Please do help if you see this question.
------------------------------
A K
------------------------------
Original Message
Original Message:
Sent: Mon July 27, 2020 10:51 AM
From: A K
Subject: ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 4 is different from 1)
The above error occurs when i run the following code:
x=df[['highwaympg']]
z=df[['horsepower','curbweight','enginesize','highwaympg']]
lm.fit(z,df['price'])
yhat=lm.predict(x)
------------------------------
A K
------------------------------
#GlobalAIandDataScience
#GlobalDataScience
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Related Content
Into Data Science: Data Science Lifecycle Data Requirements
Jacques Roy
Added Thu September 19, 2019
Library Entry
Data Science Ideation session results - Boeblingen Lab Data Science Community Meeting
Tim Waizenegger
Added Thu October 11, 2018
Library Entry
Data Science Networking Opportunities @ Think
Kinga Szekessy Parrott
Added Fri January 25, 2019
Blog Entry
4 Perfect Data Science Days - Watson Studio
Kinga Szekessy Parrott
Added Fri January 25, 2019
Blog Entry
4 Perfect Data Science Days - Decision Optimization
Kinga Szekessy Parrott
Added Fri January 25, 2019
Blog Entry
Powered by Higher Logic