Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does xlearn support the number of multithreading? #53

Closed
xxyy1 opened this issue Dec 20, 2017 · 5 comments
Closed

Does xlearn support the number of multithreading? #53

xxyy1 opened this issue Dec 20, 2017 · 5 comments

Comments

@xxyy1
Copy link

xxyy1 commented Dec 20, 2017

like param "nthread" in xgboost
I don't want to be full of CPU every time

@xxyy1 xxyy1 changed the title Does xlearn support multithreading? Does xlearn support the number of multithreading? Dec 20, 2017
@aksnzhy
Copy link
Owner

aksnzhy commented Dec 20, 2017

It's a good feature. We will update our code to support it in these days.

@aksnzhy
Copy link
Owner

aksnzhy commented Dec 20, 2017

@xxyy1 Hi, now you can use -nthread option in command line. We will update the python API as soon as possible.

@xxyy1
Copy link
Author

xxyy1 commented Dec 21, 2017

Very fast!
now,any other parameters that can be replaced ,the python API

@aksnzhy
Copy link
Owner

aksnzhy commented Dec 21, 2017

@xxyy1 Hi, we have already updated the Python API. You can use the nthread param like this:

param = { 'task':'binary', 'lr' : 0.2, 'lambda' : 0.002, 'metric' : 'acc' , 'nthread' : 2 }

@xxyy1
Copy link
Author

xxyy1 commented Dec 21, 2017

it works! thanks~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants