Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:24:12+00:00 2026-06-06T04:24:12+00:00

Any way to make train() run with custom train/test partitions of the data? I’m

  • 0

Any way to make train() run with custom train/test partitions of the data? I’m interested in backtesting time series data (for when traditional resampling/CV/etc. would be inappropriate/leaky). I.e. if the data is ordered in time from 1…N, then I repeatedly train on data before a certain cutoff to predict on data following the cutoff (up to a certain sliding window size). I couldn’t determine how to pull this off while leveraging the rest of caret train(). Thanks in advance for any tips.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:24:14+00:00Added an answer on June 6, 2026 at 4:24 am

    Max here.

    You can specify custom resampling indices in trainControl(index = list()) where the list has the elements of the training data that are used for training.

    …but train() will use everything else as a hold-out and I don’t think that’s what you want.

    I’ve probably had about 10 different requests for this feature. It would take some modifications to train() to do it, but it shouldn’t be too bad.

    However, 1) I don’t know jack about time series analysis (beyond simple basics) so some prototype code with one or two testing examples would be helpful and 2) until I finish the book (about 4 months) I won’t really have time to do this.

    So, it can be done with some modification if you are willing to contribute some technical bits and can wait a few months (which can be reduced depending on how proactive you would like to be).

    Send me an email to the address listed on the package if you would like to discuss further.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any way to make a binary in a Linux distribution and run it on
Any way to make a OS X Finder like but valid XHTML/CSS search textfield
Is there any way to make the text align left and justify as same
Is there any way to make a DataTemplate reference itself just from XAML? In
Is there any way to make the form semi-transparent while it is being moved
Is there any way to make the program sleep until an event occurs, but
Is there any way to make two controls that are in different containers the
Is there any way to make this work in Java? public static void change(List<?
Is there any way to make the background of the google charts transparent. Google
Is there any way to make a list of classes behave like a set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.