When the program is run bugs
The File "C:/Users/zijian/PycharmProjects/project1/regression py", line 77, in & lt; module>
P=10 * math.h log10 (Max (labels [j]) * * 2/loss)
RuntimeError: a Boolean value of Tensor with more than one value is ambiguous
The code below
If loss & lt; 1.0 e-10:
P=100
The else:
P=10 * math.h log10 (Max (labels [j]) * * 2/loss)
What reason is this?