Comments (4)
If you mean evaluating the results and print it into screen, you can
directly put 'test set' into the watchlist(note xgboost support watch
multiple test sets), this will give you the loss of testset of entire
training phase.
On Mon, Jun 2, 2014 at 3:07 AM, andreh7 [email protected] wrote:
is it possible to use only the first n classifiers (e.g. trees) in the
ensemble ? Is it possible to do this from python ?(this would be interesting in order to see at which point the 'loss' on
the test set increases again or becomes larger than the loss on the
training set)—
Reply to this email directly or view it on GitHub
https://github.com/tqchen/xgboost/issues/12.
from xgboost.
thanks a lot for the quick reply ! I was actually more thinking of getting the values programmatically but I'll start by what you suggested. Thanks !
from xgboost.
Another possible way, if you want to do it in python way, is to take a look at train function in
https://github.com/tqchen/xgboost/blob/master/python/xgboost.py
tweak it a bit (adding prediction, evaluation after each update, which is not hard),
you should remember to add your testing data to cachelist by
bst = Booster(params, [dtrain]+[dtest] )
So that it caches test prediction as well and make it faster to repeatily predict dtest
from xgboost.
OK there is another request for this feature in #63 , and it is now supported by the most recent version in master. In python, you can do bst.predict(data, ntree_limit=10) to use first 10 trees.
from xgboost.
Related Issues (20)
- Docs on params and Python tutorial for regression HOT 1
- Docs for custom objectives could cover more details HOT 9
- Which one is `y_true` when I use a custom loss for regression mode. HOT 3
- clarification needed for model/saving loading HOT 2
- Missing XGBoostRanker in xgboost4j-spark jvm package HOT 3
- multi label support in Scala xgboost. HOT 8
- SparkXGBClassifier does not validate params HOT 6
- feature_weights only compatible with CPU ? HOT 1
- Improve XGBoost quantile predictions HOT 3
- Latest version training crashes HOT 12
- Error when trying to build HOT 4
- Model provides different results for different Python versions HOT 2
- error in the docs for ranking HOT 1
- Defining a callback to write hessians of train observations to a csv file HOT 2
- Slow inference on sphoradic stremaing data HOT 2
- XGBoost GPU Warning When Working with BayesSearchCV (XGBoost is running on: cuda:0, while the input data is on: cpu.)
- help installing xgboost with gpu HOT 2
- Potential Documentation Inaccuracy Regarding Feature Interaction Constraints
- Horizontal Federated Learning with Secure Features RFC
- [bug] Python - Cuda error (without using Cuda) HOT 5
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.