Commit 1a3774e4 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Smarter list initialization.

parent ddb0478d
......@@ -147,11 +147,11 @@ sub _bin_features {
)
{
# For binning methods where each bin contain numerical values.
@bins = map( $_ = 0, 0 .. $nbins - 1 );
@bins = map( 0, 1 .. $nbins );
} else {
# For binning methods where each bin does not contain numerical
# values.
@bins = map( $_ = undef, 0 .. $nbins - 1 );
@bins = map( undef, 1 .. $nbins );
}
my $feature_index = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment