AI-XGBoost
view release on metacpan or search on metacpan
lib/AI/XGBoost/CAPI.pm view on Meta::CPAN
Parameters:
=over 4
=item matrix
DMatrix
=back
=head2 XGDMatrixNumCol
Get number of cols
Parameters:
=over 4
=item matrix
DMatrix
=back
=head2 XGDMatrixSetFloatInfo
=head2 XGDMatrixGetFloatInfo
=head2 XGDMatrixSetUintInfo
=head2 XGDMatrixGetUintInfo
=head2 XGDMatrixSaveBinary
=head2 XGDMatrixSliceDMatrix
=head2 XGDMatrixFree
Free space in data matrix
Parameters:
=over 4
=item matrix
DMatrix to be freed
=back
=head2 XGBoosterCreate
Create XGBoost learner
Parameters:
=over 4
=item matrices
matrices that are set to be cached
=back
=head2 XGBoosterSetParam
=head2 XGBoosterSetAttr
=head2 XGBoosterGetAttr
=head2 XGBoosterGetAttrNames
=head2 XGBoosterUpdateOneIter
Update the model in one round using train matrix
Parameters:
=over 4
=item booster
XGBoost learner to train
=item iter
current iteration rounds
=item train_matrix
training data
=back
=head2 XGBoosterBoostOneIter
=head2 XGBoosterEvalOneIter
=head2 XGBoosterPredict
Make prediction based on train matrix
Parameters:
=over 4
=item booster
XGBoost learner
=item data_matrix
Data matrix with the elements to predict
=item option_mask
bit-mask of options taken in prediction, possible values
=over 4
=item
0: normal prediction
=item
1: output margin instead of transformed value
=item
2: output leaf index of trees instead of leaf value, note leaf index is unique per tree
=item
4: output feature contributions to individual predictions
=back
=item ntree_limit
limit number of trees used for prediction, this is only valid for boosted trees
when the parameter is set to 0, we will use all the trees
=back
Returns an arrayref with the predictions corresponding to the rows of data matrix
=head2 XGBoosterDumpModel
=head2 XGBoosterDumpModelEx
=head2 XGBoosterDumpModelWithFeatures
=head2 XGBoosterDumpModelExWithFeatures
=head2 XGBoosterFree
Free booster object
Parameters:
=over 4
=item booster
booster to be freed
=back
=head1 AUTHOR
Pablo RodrÃguez González <pablo.rodriguez.gonzalez@gmail.com>
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2017 by Pablo RodrÃguez González.
=cut
( run in 0.513 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )