Coder Social home page Coder Social logo

Comments (2)

hyp1231 avatar hyp1231 commented on August 15, 2024

This function can be abstracted as splitting the original interaction records according to values of the certain feature (split_by_value), which should be another choice besides split_by_ratio. This part has been considered but not been implemented yet. PR about this function is highly welcomed. Please see

split_args = eval_setting.split_args
if split_args['strategy'] == 'by_ratio':
datasets = self.split_by_ratio(split_args['ratios'], group_by=group_field)
elif split_args['strategy'] == 'by_value':
raise NotImplementedError()
elif split_args['strategy'] == 'loo':
datasets = self.leave_one_out(group_by=group_field, leave_one_num=split_args['leave_one_num'])
else:
datasets = self
for details.

Besides the above discussion, there is indeed another way to split train and test data by certain timestamps. You can pre-split the .inter into several new atomic files by timestamp, and use the config benchmark_filename to load the pre-split datasets. Please refer to #586 (comment) for details.

from recbole.

johnny12150 avatar johnny12150 commented on August 15, 2024

Ok, I will take a look at it.

benchmark_filename: ['part1', 'part2', 'part3']

Is it correct that part1 will be automatically loaded as training data?
Edit
Yes.

from recbole.

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.