lightgbm/4.2.0

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.
Recipe info
2023-12-21

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
lightgbm/4.2.0

Using lightgbm

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
lightgbm/4.2.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("lightgbm/4.2.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): LightGBM
  • CMake target name(s): LightGBM::LightGBM
  • pkg-config file name(s): lightgbm.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(LightGBM REQUIRED)
# ...
target_link_libraries(YOUR_TARGET LightGBM::LightGBM)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the lightgbm homepage listed above:

#include "LightGBM/application.h"
#include "LightGBM/arrow.h"
#include "LightGBM/arrow.tpp"
#include "LightGBM/bin.h"
#include "LightGBM/boosting.h"
#include "LightGBM/c_api.h"
#include "LightGBM/config.h"
#include "LightGBM/cuda/cuda_algorithms.hpp"
#include "LightGBM/cuda/cuda_column_data.hpp"
#include "LightGBM/cuda/cuda_metadata.hpp"
#include "LightGBM/cuda/cuda_metric.hpp"
#include "LightGBM/cuda/cuda_objective_function.hpp"
#include "LightGBM/cuda/cuda_random.hpp"
#include "LightGBM/cuda/cuda_row_data.hpp"
#include "LightGBM/cuda/cuda_split_info.hpp"
#include "LightGBM/cuda/cuda_tree.hpp"
#include "LightGBM/cuda/cuda_utils.hu"
#include "LightGBM/cuda/vector_cudahost.h"
#include "LightGBM/dataset.h"
#include "LightGBM/dataset_loader.h"
#include "LightGBM/export.h"
#include "LightGBM/feature_group.h"
#include "LightGBM/meta.h"
#include "LightGBM/metric.h"
#include "LightGBM/network.h"
#include "LightGBM/objective_function.h"
#include "LightGBM/prediction_early_stop.h"
#include "LightGBM/sample_strategy.h"
#include "LightGBM/train_share_states.h"
#include "LightGBM/tree.h"
#include "LightGBM/tree_learner.h"
#include "LightGBM/utils/array_args.h"
#include "LightGBM/utils/binary_writer.h"
#include "LightGBM/utils/byte_buffer.h"
#include "LightGBM/utils/chunked_array.hpp"
#include "LightGBM/utils/common.h"
#include "LightGBM/utils/file_io.h"
#include "LightGBM/utils/json11.h"
#include "LightGBM/utils/log.h"
#include "LightGBM/utils/openmp_wrapper.h"
#include "LightGBM/utils/pipeline_reader.h"
#include "LightGBM/utils/random.h"
#include "LightGBM/utils/text_reader.h"
#include "LightGBM/utils/threading.h"
#include "LightGBM/utils/yamc/alternate_shared_mutex.hpp"
#include "LightGBM/utils/yamc/yamc_rwlock_sched.hpp"
#include "LightGBM/utils/yamc/yamc_shared_lock.hpp"