Comments (11)
Problem: build from source failed Catboost version: latest source code Operating System: OS 14.0 CPU: Apple M1 Pro
I downloaded the latest code from GitHub and prepared to build the Python Whl package according to the official website instructions, but it showed an error.
What is your python version, pip version and do you have setuptools
, wheel
and build
python packages installed?
BTW, does there exist any debug mode for catboost? Really feel confused about how the tree is built. I tried using plain mode and plot the tree structure but found that the tree is also a symmetric tree.
You can build CatBoost from source with build type set to Debug
either using build_native.py
with the option --build-type=Debug
or when invoking CMake directly and specifying CMAKE_BUILD_TYPE
.
If you are talking about debug mode in a sense that more additional information is output then:
-
I think there are too many things and scenarios for what should be output and what not to build a some kind of universally useful debug mode. But we are open to suggestions.
-
CatBoost is open source so you can modify the source code to output what is useful in your debugging case.
from catboost.
What is your python version, pip version and do you have setuptools, wheel and build python packages installed?
@andrey-khropov
Python: 3.9.6
pip: 24.0
setuptools: 69.2.0
wheel: 0.37.0
build: 1.2.1
BTW, I noticed that the piror_numerator might be different in one tree of different depths. Why is this๏ผ
from catboost.
one tree of different depths
I don't understand what you mean by this.
P.S. Please don't ask unrelated questions in a single issue, open a separate one or ask in the Discussions
page on in the Telegram chat
from catboost.
@andrey-khropov Ok, let's continue discussing the build failure issue here.
from catboost.
What revision of the the source code did you use exactly?
Your error is reported on line 311. but this code with user_options
has been on line 312 for quite some time.
from catboost.
I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error
@andrey-khropov
from catboost.
I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error @andrey-khropov
This is very weird and I don't think it depends on CatBoost. Try to cleanup .eggs
directory and run the build command again.
from catboost.
@andrey-khropov Python Conan dependencies with version 2.2.3 works well but the build process occurred new error after cleaning .egg directory.
from catboost.
@andrey-khropov Python Conan dependencies with version 2.2.3
Version of what? CatBoost does not have version 2.2.3 yet.
works well but the build process occurred new error after cleaning .egg directory.
It prints that the Conan install failed
, check the messages above to get the original error during the conan packages installation.
P.S. Please insert text as text, not images, it will be easier to find, quote and copy-paste.
from catboost.
@andrey-khropov The source code of Catboost is the latest one pulled from GitHub. I installed Conan using pip, and the down the version of Conan to 1.62.0. But another error occured:
FAILED: util/draft/CMakeFiles/util-draft.dir/ip.cpp.o
/usr/bin/clang++ -DCATBOOST_OPENSOURCE=yes -I../../../../ -I. -I../../../../contrib/libs/linux-headers -I../../../../contrib/libs/linux-headers/_nf -I../../../../contrib/libs/cxxsupp/libcxx/include -I../../../../contrib/libs/cxxsupp/libcxxrt/include -I../../../../contrib/libs/clang16-rt/include -fexceptions -fno-common -fcolor-diagnostics -faligned-allocation -fdebug-default-version=4 -ffunction-sections -fdata-sections -Wall -Wextra -Wno-parentheses -Wno-implicit-const-int-float-conversion -Wno-unknown-warning-option -pipe -D_THREAD_SAFE -D_PTHREADS -D_REENTRANT -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__LONG_LONG_SUPPORTED -D_GNU_SOURCE -DLIBCXX_BUILDING_LIBCXXRT -fuse-init-array -D_FILE_OFFSET_BITS=64 -m64 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16 -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE -Woverloaded-virtual -Wimport-preprocessor-directive-pedantic -Wno-undefined-var-template -Wno-return-std-move -Wno-defaulted-function-deleted -Wno-pessimizing-move -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion -Wno-ambiguous-reversed-operator -Wno-deprecated-volatile -DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 -DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 -fPIC -DLIBCXX_BUILDING_LIBCXXRT -nostdinc++ -D_libunwind_ -std=c++2a -MD -MT util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -MF util/draft/CMakeFiles/util-draft.dir/ip.cpp.o.d -o util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -c ../../../../util/draft/ip.cpp
clang: error: unknown argument: '-fdebug-default-version=4'
from catboost.
@andrey-khropov The source code of Catboost is the latest one pulled from GitHub. I installed Conan using pip, and the down the version of Conan to 1.62.0. But another error occured:
FAILED: util/draft/CMakeFiles/util-draft.dir/ip.cpp.o /usr/bin/clang++ -DCATBOOST_OPENSOURCE=yes -I../../../../ -I. -I../../../../contrib/libs/linux-headers -I../../../../contrib/libs/linux-headers/_nf -I../../../../contrib/libs/cxxsupp/libcxx/include -I../../../../contrib/libs/cxxsupp/libcxxrt/include -I../../../../contrib/libs/clang16-rt/include -fexceptions -fno-common -fcolor-diagnostics -faligned-allocation -fdebug-default-version=4 -ffunction-sections -fdata-sections -Wall -Wextra -Wno-parentheses -Wno-implicit-const-int-float-conversion -Wno-unknown-warning-option -pipe -D_THREAD_SAFE -D_PTHREADS -D_REENTRANT -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__LONG_LONG_SUPPORTED -D_GNU_SOURCE -DLIBCXX_BUILDING_LIBCXXRT -fuse-init-array -D_FILE_OFFSET_BITS=64 -m64 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16 -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE -Woverloaded-virtual -Wimport-preprocessor-directive-pedantic -Wno-undefined-var-template -Wno-return-std-move -Wno-defaulted-function-deleted -Wno-pessimizing-move -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion -Wno-ambiguous-reversed-operator -Wno-deprecated-volatile -DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 -DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 -fPIC -DLIBCXX_BUILDING_LIBCXXRT -nostdinc++ -D_libunwind_ -std=c++2a -MD -MT util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -MF util/draft/CMakeFiles/util-draft.dir/ip.cpp.o.d -o util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -c ../../../../util/draft/ip.cpp clang: error: unknown argument: '-fdebug-default-version=4'
That means that your clang
version is very old. '-fdebug-default-version' argument is supported since clang 10.x.
CatBoost requires newer clang
versions to build.
from catboost.
Related Issues (20)
- _catboost.CatBoostError: /src/catboost/catboost/libs/model/model.cpp:564: Too many features in model, ask catboost team for support HOT 3
- If multiple GPUs are present at server and devices parameter is set to specific GPU, catboost allocates GPU memory at other GPUs HOT 1
- Different results with Python and command line HOT 2
- PySpark ML CrossValidator cannot load serialized CrossValidator because it cannot find CatBoostRegressor class HOT 1
- CatBoost for Apache Spark AUC eval metric not working as expected. HOT 3
- CatBoost throws an exception when dealing with a large dataset
- Catboost 1.2.5 broke text features on GPU "Can't find borders for feature #4138" HOT 12
- R: Failed to install 'unknown package' from GitHub HOT 2
- [Model dump: JSON] model.save_model does not warn when required "pool" argument is skipped
- tensor_search_helpers.cpp HOT 1
- quantize: Categorical features are not supported in block quantization
- MultiLogloss can not be used if 'class weight' is specified.
- InternalFeatureImportance is in documentation but not implemented HOT 1
- Internal CatBoost Error (contact developers for assistance): isRealTarget is false, but isClass is false HOT 3
- Can't set keyword arguments sample_weight and init_model while using a custom loss
- Numpy 2.0 support status? HOT 3
- Tests are failing for catboost python-package component.
- I use optuna to select model params and "num_features_to_select" of select_features function. The result is bad.
- My text feature is Chinese and can't be tokenized by delimiter 'space'. How can I use a user-defined tokenizer?
- c++ Standalone evaluator not loading bias
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catboost.