Comments (4)
@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.
@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.
Works exactly as it is supposed to! Thank you! 🙏
from rumale.
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)
- feature request: clustering metrics HOT 4
- FP-Gowth algorithm HOT 1
- fit_bias: false is the default parameter for LinearRegression. Too difficult to find out ? HOT 2
- Documentation HOT 4
- デフォルトのsolverを使った場合のRumale::LinearModel::LinearRegressionの結果が直感と合いません HOT 5
- Example 1. XOR data - fails HOT 2
- Unable to install gem under rvm on jruby-9.2.0.0 HOT 2
- Is there a way to show the classification report as in sklearn? HOT 6
- When loading dataset from libsvm file, determine size of line HOT 3
- stack level too deep HOT 13
- Online versions of algorithms HOT 3
- HDBSCAN HOT 1
- Feature request : UMAP HOT 3
- Cross validation: best score HOT 1
- teratail: Rubyにrumaleをインストールできません HOT 3
- Add option to store training summary HOT 1
- ラベル予測と機械学習の実行速度を上げたい HOT 1
- Required Ruby Version is unclear HOT 2
- Compatibility Inquiry: rumale 0.28.1 with Ruby 3.3.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rumale.