The error message suggests that there is a TypeError in the code. Specifically, it seems that the code is trying to convert an array to a scalar value, which is not allowed.
To fix this issue, you can try the following:\

  1. Check if the max_value[j] variable is a scalar value. Make sure it is not an array or a list.\
  2. If max_value[j] is an array or a list, you need to access the specific element you want to use. For example, if max_value[j] is an array, you can use max_value[j][0] to access the first element.
    Here's an example of how you can modify the code:\
x_train[:, j] = log10(x_train[:, j] + 1e-5) / log10(max_value[j][0])\
```\
Make sure to double-check the data types and values of the variables involved to ensure the code runs correctly.

原文地址: https://www.cveoy.top/t/topic/pQWu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录