Git Product home page Git Product logo

Comments (1)

Re-bin avatar Re-bin commented on July 20, 2024

嗨,你好!

感谢关注,大数据量是一个很好的问题!
不过,在算法库的创建之初,主要考虑的是学术届常用的数据量大小,没有对承载极限做过压力测试。
针对于目前代码,我们在data_utils/datasets_sequential.py中的140行,将所有用户的历史交互数据以字典的形式存储,这样主要占用内存的资源,在训练的过程中,随机采样用户batch进行训练。

如果是几亿的数据量,首先对自身电脑的内存资源有一定的要求,其次,可以先在存储层面将几亿的用户进行均匀分块,在训练的过程中,先随机选择用户块,接着读取用户块到内存中,然后再对用户块内采样训练数据,这样可以缓解对内存的压力。

希望上述建议能对您有所帮助 :)

Best regards,
Xubin

from sslrec.

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.