Skip to content

Alien package to find, and build if necessary XGBoost library

Notifications You must be signed in to change notification settings

pablrod/p5-Alien-XGBoost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Alien::XGBoost - Alien package to find, and build if necessary XGBoost dynamic library

VERSION

version 0.05

SYNOPSIS

use Alien::XGBoost;
use FFI::Platypus;

my $ffi = FFI::Platypus->new;
$ffi->lib(Alien::XGBoost->dynamic_libs);
$ffi->attach(XGBGetLastError => [] => 'string');
my $error = XGBGetLastError();

DESCRIPTION

Alien package to find, and build if necessary XGBoost dynamic library.

Build Status Build status

This module is to be used by other modules that need the XGBoost dynamic library available, indeed I've made this for AI::XGBoost.

If you only want to use XGBoost in your perl programns, just use AI::XGBoost and forget this module. If you want to make other XGBoost wrappers or use from XS then continue reading.

By now there is no support for compiling your modules against XGBoost. Just using the dynamic library via FFI::Platypus or NativeCall.

Troubleshooting

The "instructions" to build and install as a module are in the alienfile.

Lots of things can go wrong, and in that case, I'm glad to help, just open an issue https://github.com/pablrod/p5-Alien-XGBoost.

But this information could be useful:

  • Downloading

    XGBoost doesn't make releases often https://github.com/dmlc/xgboost/releases (last one from 2016) So I'm cloning branch master.

    XGBoost uses git modules, so I need a recursive clone.

  • Installing

    XGBoost cmake doesn't provide a install target for the generated Makefiles, so this module is copying the dynamic library and the xgboost command to the module share dir

    If installation is succesfull you can query the module Alien::XGBoost to know where is the dynamic library and command in your system

SEE ALSO

ACKNOWLEDGEMENTS

Thanks to Graham Ollis [email protected] for all the support and making so many great modules that make easier to make Alien's:

AUTHOR

Pablo Rodríguez González [email protected]

COPYRIGHT AND LICENSE

Copyright (c) 2017 by Pablo Rodríguez González.

About

Alien package to find, and build if necessary XGBoost library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages