A package will help you to split your data frame into training, validation and testing subsets
Project description
A package will help you to split your data frame into training, validation and testing subsets
Working:
Splits arrays or matrices into random train, validation and test subsets "train_val_test_split" function accepts independent features(X), dependent feature (y), validation size (default size = 0.15),test size (default size = 0.15) and shuffle (default = True) as input parameters and returns X_train,X_val,X_test,y_train,y_val,y_test
Note: If shuffle parameter is True, after shuffling index of all records will be reset in ascending order
How to use it:
from vinzy_splitter import train_val_test_split
X_train,X_val,X_test,y_train,y_val,y_test = train_val_test_split(X,y,val_size=0.15,test_size=0.15,shuffle=True)
after executing the function your data frame will be splitted into training,validation and testting subsets based on validation and testing size you have provided, deafult value will be 15% for both and suffling will be True.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for vinzy_splitter-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27aa643b341d400449d203f0cd672353448efe21018cddfc40d8e86fcacd4b86 |
|
MD5 | a8ffff60b463c0c212aca8e9c38eb6e7 |
|
BLAKE2b-256 | 1f249b4de433ed549aaf53ad96c7ed9febd790daa282573f3ca17d9a7d448c0a |