Group
Extension

Matches 1

AI-XGBoost ( P/PA/PABLROD/AI-XGBoost-0.11.tar.gz, PABLROD, 2017; MetaCPAN )
AI-XGBoost/lib/AI/XGBoost/Booster.pm ( view source; MetaCPAN )
BoosterGetAttrNames( $self->_handle ) } };
}

sub TO_JSON {
    my $self = shift;
    my $trees = XGBoosterDumpModelEx( $self->_handle, "", 1, "json" );
    return "[" . join( ',', @$trees ) . "]";
}
r as a HASHREF

=head2 TO_JSON

Serialize the booster to JSON.

This method is to be used with the option C<convert_blessed> from L<JSON>.
(See L<https://metacpan.org/pod/JSON#OBJECT-SERIALISATION>)


Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.