Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to use rmse as loss function in keras

from keras import backend as K

def root_mean_squared_error(y_true, y_pred):
        return K.sqrt(K.mean(K.square(y_pred - y_true), axis=-1)) 

  model.compile(optimizer = "rmsprop", loss = root_mean_squared_error, 
              metrics =["accuracy"])
Comment

PREVIOUS NEXT
Code Example
Python :: python print float in scientific notation 
Python :: hbox(children=(floatprogress(value= 
Python :: Install requests-html library in python 
Python :: tensot to numpy pytorch 
Python :: pandas count specific value in column 
Python :: reverse dictionary python 
Python :: sklearn minmaxscaler pandas 
Python :: get files in directory python 
Python :: mongodb between two values 
Python :: chromebook install pip 
Python :: python Key–value database 
Python :: python dns pip 
Python :: discord.py set activity 
Python :: opencv write text 
Python :: numpy from csv 
Python :: how to set a image as background in tkitner 
Python :: tkinter max size 
Python :: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly 
Python :: df dropna ensure that one column is not nan 
Python :: covariance matrix python 
Python :: python datetime now minus 3 hours 
Python :: python choose random sample from list 
Python :: to extract out only year month from a date column in pandas 
Python :: how to save a model fast ai 
Python :: python convert file into list 
Python :: how to make a text input box python pygame 
Python :: xgboost feature importance 
Python :: how to print right angle triangle in python 
Python :: python extract every nth value from list 
Python :: load from np file py 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =