Python Forum
How to update trainSet on each iteration
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to update trainSet on each iteration
#5
I run the code successfully,
runfile('D:/Mekala_Backupdata/PythonCodes/randonForest_SVR.py', wdir='D:/Mekala_Backupdata/PythonCodes')
Linear SVM
Accuracy: 0.25
1) x3 0.000000
2) x1 0.000000
3) x2 0.000000
RandonForest
Accuracy: 0.25
1) x2 0.405015
2) x1 0.310160
3) x3 0.284826

But my following question:

My initial Train set is 90% and test set is 10%, I want to update the train set on each iteration like:
if my total data set is 10, initial trainset size is 7(1~7), I predict 8,9,10. When I predict 8th one, then my train set will become 8(1~8) to predict 9, then after predicting 9th one, the train set will update to 1~9, and predict 10th one
Reply


Messages In This Thread
How to update trainSet on each iteration - by Raj - Apr-27-2018, 03:25 PM
RE: How to update trainSet on each iteration - by Raj - Apr-29-2018, 11:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to split data into trainSet and testSet retaining the index continuous Raj 1 2,512 May-02-2018, 09:03 AM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

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