Traceback (most recent call last): File "I:\JetBrains\StockIndexFuture\main.py", line 23, in <module> train_model_and_see() File "I:\JetBrains\StockIndexFuture\myPackage\logistic_regression.py", line 210, in train_model_and_see train(fea_path, mode, target_selection, feature_list, model_path, test_size, batch_size, epochs, load_model, train_model, learning_rate, fig_path) File "I:\JetBrains\StockIndexFuture\myPackage\logistic_regression.py", line 121, in train loss = loss_fun(out, y) File "I:\Anaconda3\envs\sdsd_torch\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl return forward_call(*input, **kwargs) File "I:\Anaconda3\envs\sdsd_torch\lib\site-packages\torch\nn\modules\loss.py", line 619, in forward return F.binary_cross_entropy(input, target, weight=self.weight, reduction=self.reduction) File "I:\Anaconda3\envs\sdsd_torch\lib\site-packages\torch\nn\functional.py", line 3095, in binary_cross_entropy return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum) RuntimeError: all elements of input should be between 0 and 1