GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — visualpython/docs/machine-learning/2.-data-split.md at main · visualpython/visualpython

Expand file tree

/

2.-data-split.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (12 loc) · 1.22 KB
/

2.-data-split.md

Copy path

File metadata and controls

21 lines (12 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

2. Data Split

  1. Click on Data Split in the Machine Learning category.

  1. Input Data: Choose whether the target data is included in the input data. If it is, select Feature Data and Target Data separately. You can also select specific columns from one dataset using the funnel icon.
  2. Test Size: Select the percentage of input data to use for testing purposes.
  3. Random State: Generate the same random state, ensuring consistent data splits each time. (If not set, data will be randomly split differently each time.)
  4. Shuffle: Shuffle the data randomly to prevent the model from relying on the order of the data, thereby reducing bias and improving generalization performance.
  5. Stratify: Maintain class ratios when splitting the data to prevent over-representation of certain classes (Classification).
  6. Allocate to: Assign variable names to the split data.
  7. Code View: Preview the code that will be output.
  8. Run: Execute the code.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.