Python Forum
loop function that parses arrays with condition: no redundant data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loop function that parses arrays with condition: no redundant data
#2
Use scikitlearn's sklearn.model_selection.train_test_split function twice. Once to split off your validation set, then once to get your train and test functions.

In other words, the wheel has been invented already. Don't try to write the routine that does this rather than use a fast, debugged routine that already exists.
Reply


Messages In This Thread
RE: loop function that parses arrays with condition: no redundant data - by jefsummers - Nov-03-2020, 12:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I run a function inside a loop every 24 values of the loop iteration range? mcva 1 2,241 Sep-18-2019, 04:50 PM
Last Post: buran
  2D arrays and appending values using a loop Pythonhelp82 4 5,932 Mar-25-2019, 03:23 AM
Last Post: Pythonhelp82
  While loop within a Function (2.7) tuffgong 3 3,656 Jun-28-2017, 05:54 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020