Skip to content

Commit

Permalink
Descriptives issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidge807 committed Jan 3, 2023
1 parent e5f7fae commit d88bb66
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opennn/statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ Histogram::Histogram(const Tensor<type, 1>& data,

corresponding_bin = int((value - data_minimum) / step);


if(corresponding_bin >= number_of_bins)
corresponding_bin = number_of_bins - 1;

Expand Down Expand Up @@ -1932,6 +1931,13 @@ Tensor<Descriptives, 1> descriptives(const Tensor<type, 2>& matrix,
standard_deviation(i) = sqrt(variance);
}
}
else
{
for(Index i = 0; i < columns_indices_size; i++)
{
standard_deviation(i) = 0;
}
}

for(Index i = 0; i < columns_indices_size; i++)
{
Expand Down

0 comments on commit d88bb66

Please sign in to comment.