Git Product home page Git Product logo

Comments (8)

aksnzhy avatar aksnzhy commented on May 17, 2024

xlearn does not set the max id of feature for each line. But we will set a maximal buffer for each line. The buffer size is 100kb. If your data is beyond this buffer, xlearn will raise an error:

if (read_size > kMaxLineSize) {
   LOG(FATAL) << "Encountered a too-long line.    \
          Please check the data.";
 }

from xlearn.

aksnzhy avatar aksnzhy commented on May 17, 2024

If your data in one line is beyond this buffer, please tell us.

from xlearn.

HyperGroups avatar HyperGroups commented on May 17, 2024

OK, my dataset has many features in oneline, maybe 2w. feature_space is 10000000.
I've uploaded a sample data in my repo
@aksnzhy
https://github.com/HyperGroups/MachineLearning/tree/master/xlearn/problem
feature_length is {2719, 325, 10032, 2389, 2248}

my data can train by xgboost.

from xlearn.

aksnzhy avatar aksnzhy commented on May 17, 2024

@HyperGroups Hi, we have already fix this bug. You can try it. It's really a big size in one line of your data. Please let me know if there is any problem.

from xlearn.

HyperGroups avatar HyperGroups commented on May 17, 2024

@aksnzhy The problem in this issue has be fixed.

My machine's memory is 128G.

But I found in my dataset, there are some memory problem, my dataset is 24G, average sample size is 3000-15000, feature space is 1000w, actual is 300w.
xlearn_train failed with 'killed' error, training progress is 4 epoch.
I've also tried --no-norm --disk and --dis-lock-free

And another full dataset with 100G which can be trained by xgboost also be killed.
so I reduce my dataset to 24G to test.

xlearn_train train.data -m train.model -v test.data -x acc --no-norm --disk

from xlearn.

aksnzhy avatar aksnzhy commented on May 17, 2024

Can you provide me the detailed error information ? Thank you !

from xlearn.

HyperGroups avatar HyperGroups commented on May 17, 2024

I've emailed you, I can offer my dataset in Baidu Cloud if neccessary.
@aksnzhy

from xlearn.

aksnzhy avatar aksnzhy commented on May 17, 2024

Solved memory leak bug.

from xlearn.

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.