Code Monkey home page Code Monkey logo

Comments (6)

pprett avatar pprett commented on May 3, 2024

I set 'bst:gamma': 0.0 in case that matters

from xgboost.

tqchen avatar tqchen commented on May 3, 2024

hmm.. can you post a script that can produces the error? I can't produce this error with my script.

#!/usr/bin/python
import sys
import sklearn.datasets
sys.path.append('../')
import xgboost as xgb
x, y = sklearn.datasets.make_hastie_10_2()
y[y==-1] = 0

dtrain = xgb.DMatrix(x, label=y)

param = {'bst:max_depth':2, 'bst:eta':1, 'bst:gamma':0, 'objective':'binary:logistic', 'silent':1 }
num_round = 10
evallist  = [(dtrain,'train')]
bst = xgb.train( param, dtrain, num_round, evallist )

from xgboost.

pprett avatar pprett commented on May 3, 2024

this is strange: I fail to create an isolated script to reproduce it. Even stranger: the error only occurs if I run either Rgbm (via rpy2) or sklearn's GradientBoostingClassifier before... but in this case its 100% reproducible. BTW: it happens in bst.predict not xgb.train

from xgboost.

tqchen avatar tqchen commented on May 3, 2024

i have some idea what happened.
This can due to the fact that we are using pointer to check if a matrix a cached. If a matrix get freed and another allocation gets the same address, we can run into trouble.
There is a update in dev branch that fixed this problem, but we would like to test before we release it

from xgboost.

pprett avatar pprett commented on May 3, 2024

checked with the dev branch - you fixed it!

from xgboost.

tqchen avatar tqchen commented on May 3, 2024

Thanks peter! Indeed this is a problem that we overlooked:)

from xgboost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.