Issubdtype from float to np.floating is deprecated when I run tensorflow in backend in R

rstudio

#1

Hi, friends

I am trying to do image recognitation using Keras package. when I trying to use to_categorical function
it gives me following error and R session terminnated.
conversion of second argument of issubdtype from float to np.floating is deprecated.In future , it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as_register_converters Using TenseorFlow backend

i installed python 3.6.

can anyone please help me in it?

Thanks in advance


#2

Do you have the latest version of reticulate installed?

Your symptoms are similar to issue 2012 where the advice was to reinstall the dev version of reticulate.

devtools::install_github("rstudio/reticulate")

#3

Ok thanks I will try to install reticulate again