Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to calculate rmse in linear regression python

actual = [0, 1, 2, 0, 3]
predicted = [0.1, 1.3, 2.1, 0.5, 3.1]

mse = sklearn.metrics.mean_squared_error(actual, predicted)

rmse = math.sqrt(mse)

print(rmse)
Comment

PREVIOUS NEXT
Code Example
Python :: python program to keep your computer awake 
Python :: how to open a software using python 
Python :: django register models 
Python :: selenium change window size 
Python :: plot roc curve for neural network keras 
Python :: python selenium run javascript 
Python :: ls.ProgrammingError: permission denied for table django_migrations 
Python :: FutureWarning: Input image dtype is bool. Interpolation is not defined with bool data type. Please set order to 0 or explicitly cast input image to another data type. Starting from version 0.19 a ValueError will be raised instead of this warning. 
Python :: clearing all text from a file in python 
Python :: python convert number to string with leading zeros 
Python :: python install command in linux 
Python :: Generate random image np array 
Python :: pandas replace nonetype with empty string 
Python :: tkinter give button 2 commands 
Python :: python get majority of list 
Python :: install python glob module in windows 
Python :: plot function in numpy 
Python :: python format 2 digits 
Python :: remove punctuation from string python 
Python :: how to clear a command line python 
Python :: syntax to update sklearn 
Python :: discord py on ready 
Python :: discord.py mute 
Python :: tkinter how to disable window resizing 
Python :: python random randint except a number 
Python :: python get all folders in directory 
Python :: pytesseract tesseract is not installed 
Python :: python change filename 
Python :: installing wxpython on windows 10 
Python :: np.save function 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =