TypeError: unsupported operand type(s) for -: 'list' and 'list'

前端 未结 4 1008
心在旅途
心在旅途 2020-12-06 04:47

I am trying to implement the Naive Gauss and getting the unsupported operand type error on execution. Output:

  execfile(filename, namespace)
  File \"/media         


        
4条回答
  •  猫巷女王i
    2020-12-06 05:05

    The operations needed to be performed, require numpy arrays either created via

    np.array()

    or can be converted from list to an array via

    np.stack()

    As in the above mentioned case, 2 lists are inputted as operands it triggers the error.

提交回复
热议问题