I am using shadoworflow with python3 support. There is a line in my code that causes me an error.
The error is here:
return -10. * np.log10(K.mean(K.square(y_pred - y_true)))
AttributeError: The tensor object does not have the log10 attribute
you can do like this:
return 10.0 * K.log(1.0 / (K.mean(K.square(y_pred - y_true)))) / K.log(10.0)
Source: https://habr.com/ru/post/1680652/More articles:Right click and right click in VueJS - vue.jsКак установить webpackChunkName для импорта() глобально? - javascriptRebooting pickling in a Flask application - pythonHow can I display the details of an EKEvent prompt in my application using the EKEventViewController? - iosAttributeError: 'Tensor' object does not have '_keras_history' attribute - pythonHow to select the next row so that it returns 3? SELECT '1 + 2' - sqlPython list comprehension => Ruby select / reject by index, not by element - arraysHow to evaluate string expression in SQL Server? - sqlhow to create heatmap in ipyleaflet - ipythonMoment js - display days and hours from a date - javascriptAll Articles