Git Product home page Git Product logo

Comments (4)

yoshoku avatar yoshoku commented on September 3, 2024 1

@lalusaud Thank you for your suggestion and the useful notebook. I would like to implement a module function equivalent to train_test_split in the next version.
By the way, I always obtain random split as follows:

train_ids, test_ids = Rumale::ModelSelection::ShuffleSplit.new(
                        n_splits: 1, test_size: 0.3, random_seed: 1
                      ).split(x, y).first
x_train = x[train_ids, true]
y_train = y[train_ids]
x_test = x[test_ids, true]
y_test = y[test_ids]

from rumale.

yoshoku avatar yoshoku commented on September 3, 2024 1

@lalusaud I have released version 1.8.0 including train_test_split method. Please confirm that.

https://yoshoku.github.io/rumale/doc/Rumale/ModelSelection.html#train_test_split-class_method

x_train, x_test, y_train, y_test = Rumale::ModelSelection.train_test_split(
  x, y, test_size: 0.4, random_seed: 1
)

from rumale.

lalusaud avatar lalusaud commented on September 3, 2024 1

Works exactly as it is supposed to! Thank you! 🙏

from rumale.

lalusaud avatar lalusaud commented on September 3, 2024

Awesome! I look forward to the module. Thank you for the cleaner suggestion @yoshoku, I will update my notebook code.

from rumale.

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.