Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinzy-splitter-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vinzy_splitter-1.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file vinzy-splitter-1.0.1.tar.gz.

File metadata

  • Download URL: vinzy-splitter-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

File hashes

Hashes for vinzy-splitter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7491cc73d087ef9bc6ebf9c0f2798c160fbf2a7bf8e75e2d6f52edcb0bfa4494
MD5 8fd35320b3810d650ad84e61b15b1af8
BLAKE2b-256 5b76949e74df6ed65f73927c6b6e496bafb05630967202563e37cace7ad94437

See more details on using hashes here.

File details

Details for the file vinzy_splitter-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vinzy_splitter-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

File hashes

Hashes for vinzy_splitter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27aa643b341d400449d203f0cd672353448efe21018cddfc40d8e86fcacd4b86
MD5 a8ffff60b463c0c212aca8e9c38eb6e7
BLAKE2b-256 1f249b4de433ed549aaf53ad96c7ed9febd790daa282573f3ca17d9a7d448c0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page