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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e596ee4145904e58d7e1d263b9959b7989ba6e1e1b51e78c768a04f5564e107 |
|
MD5 | d9c63beb4ec71f8d76e342e4b170ad08 |
|
BLAKE2b-256 | 3f5be96f570f6bec5e61f8360715f9d834ecb12c66f70e719640d83c2f2ae767 |