Comments (6)
Can you see a warning in the worker log?
from xgboost.
Hi @NicoG94, when you call fit, the xgboost will show the warning of unused parameters,
2024-03-13 19:03:55,097 INFO XGBoost-PySpark: _fit Running xgboost-2.0.3 on 1 workers with
booster params: {'objective': 'binary:logistic', 'device': 'cpu', 'this_does_not_exist': 'really_not', 'nthread': 1}
train_call_kwargs_params: {'verbose_eval': True, 'num_boost_round': 100}
dmatrix_kwargs: {'nthread': 1, 'missing': nan}
[19:03:59] task 0 got new rank 0
/home/bobwang/anaconda3/envs/xgboost/lib/python3.10/site-packages/xgboost/core.py:160: UserWarning: [19:03:59] WARNING: /workspace/src/learner.cc:742:
Parameters: { "this_does_not_exist" } are not used.
warnings.warn(smsg, UserWarning)
2024-03-13 19:04:00,234 INFO XGBoost-PySpark: _fit Finished xgboost training!
from xgboost.
for me it does not show that unfortunately.
Call:
model = SparkXGBClassifier(
num_workers=1,
label_col=target_col,
random_state=42,
this_does_not_exist="really_not",
n_estimators=10,
)
trained_model = model.fit(train_data)
Output:
2024-03-13 11:28:57,093 INFO XGBoost-PySpark: _fit Running xgboost-2.0.3 on 1 workers with
booster params: {'objective': 'binary:logistic', 'device': 'cpu', 'random_state': 42, 'this_does_not_exist': 'really_not', 'nthread': 1}
train_call_kwargs_params: {'verbose_eval': True, 'num_boost_round': 10}
dmatrix_kwargs: {'nthread': 1, 'missing': nan}
2024-03-13 11:29:00,789 INFO XGBoost-PySpark: _fit Finished xgboost training!
from xgboost.
in the worker logs it does show up. But it is really hard to find if you work with Databricks. I checked where it is logged. It is here. Any reason you are using print instead of logging here? Maybe if you would use logging, my console would be able to show it
from xgboost.
We have changed it into using the warning
module in the latest but haven't released it yet. You can find the call to the warning module in your referenced link (right above the line you referred to).
from xgboost.
ah okay, thanks for the quick responses. Keep up the great work! :)
from xgboost.
Related Issues (20)
- Horizontal Federated Learning with Secure Features RFC
- [bug] Python - Cuda error (without using Cuda) HOT 5
- Pandas 2.2: Index.format is deprecated
- ArrayInterface handler for cuDF DataFrame cannot yet handle Boolean columns HOT 1
- src/metric/auc.cc:322: Check failed: auc <= local_area HOT 1
- XGBoost4j-spark CrossValidation train FAILED on multi-GPU environment: : Multiple processes running on same CUDA device is not supported! HOT 1
- [jvm-packages] Scaladoc is not working in latest XGBoost
- [CI] Tracker for improving build and CI/CD infrastructure
- [CI] Set up a nightly pipeline to test with dev versions of RAPIDS
- xgboost predict takes a long time HOT 1
- xgboost4j_2.12:1.7.6 's (ml/dmlc/xgboost4j/java/XGBoostJNI.XGBoosterPredict) much slower than 0.90 in some model HOT 6
- NumPy 2.0 support HOT 2
- Tutorial on c-api distributed training of xgboost HOT 2
- Python 3.12 `xgboost.core.XGBoostError: Invalid Parameter format for nthread expect int but value='-1'` when `DMatrix` used with `import googlecloudprofiler`. HOT 6
- [CI] Retire Mac Mini worker in BuildKite HOT 1
- [RFC] New logo for XGBoost HOT 1
- c-ares and BoringSSL version in xgboost 2.0.3 HOT 12
- Federated horizontal result does not align with basic training without federation HOT 7
- monotone_constraints not working with xgb.regressor (python) HOT 3
- xgboost 2.0.1 is breaking on rootless docker. HOT 3
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 xgboost.