Hi there,
While executing the code "6-reinforce", i am getting this error "TypeError: Unable to build Dense layer with non-floating point dtype <dtype: 'int32'>" thrown by the line "policy = self.model(state)[0]". when i type casted the integer input "state" to float as "state.astype('float')" now it generate the error "len() of unsized object" at line "return np.random.choice(self.action_size, 1, p=policy)[0]" . how to tackle this?
Hi there, While executing the code "6-reinforce", i am getting this error "TypeError: Unable to build
Dense
layer with non-floating point dtype <dtype: 'int32'>" thrown by the line "policy = self.model(state)[0]
". when i type casted the integer input "state" to float as "state.astype('float')
" now it generate the error "len() of unsized object" at line "return np.random.choice(self.action_size, 1, p=policy)[0]
" . how to tackle this?