modeltime | Modeltime unlocks time series forecast models and machine | Machine Learning library

 by   business-science R Version: v1.2.5 License: Non-SPDX

kandi X-RAY | modeltime Summary

kandi X-RAY | modeltime Summary

modeltime is a R library typically used in Artificial Intelligence, Machine Learning, Deep Learning, Tensorflow applications. modeltime has no bugs, it has no vulnerabilities and it has low support. However modeltime has a Non-SPDX License. You can download it from GitHub.

Modeltime is an amazing ecosystem for time series forecasting. But it can take a long time to learn:. Your probably thinking how am I ever going to learn time series forecasting. Here’s the solution that will save you years of struggling.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              modeltime has a low active ecosystem.
              It has 441 star(s) with 72 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 45 open issues and 149 have been closed. On average issues are closed in 93 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of modeltime is v1.2.5

            kandi-Quality Quality

              modeltime has 0 bugs and 0 code smells.

            kandi-Security Security

              modeltime has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              modeltime code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              modeltime has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              modeltime releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 29619 lines of code, 0 functions and 142 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of modeltime
            Get all kandi verified functions for this library.

            modeltime Key Features

            No Key Features are available at this moment for modeltime.

            modeltime Examples and Code Snippets

            No Code Snippets are available at this moment for modeltime.

            Community Discussions

            QUESTION

            How to extract confidence intervals from modeltime recursive ensembles?
            Asked 2021-Dec-02 at 16:17

            As I want to produce some visualizations and analysis on forecasted data outside the modeltime framework, I need to extract confidence values, fitted values and maybe also residuals.

            The documentation indicates, that I need to use the function modeltime_calibrate() to get the confidence values and residuals. So one question would be, where do I extract the fitted values from?

            My main question is whatsoever, how to do calibration on recursive ensembles. For any non-ensemble model I was able to do it, but in case of recursive ensembles I encounter some error messages, if I want to calibrate.

            To illustrate the problem, look at the example code below, which ends up failing to calibrate all models:

            ...

            ANSWER

            Answered 2021-Dec-01 at 11:13

            The problem lies in your recursive_ensemble_panel. You have to do the recursive part on the models themselves and not the ensemble. Like you I would have expected to do the recursive in one go, maybe via modeltime_table.

            Source https://stackoverflow.com/questions/70181581

            QUESTION

            Error in tune_grid with no applicable method for prep R tidymodels
            Asked 2021-Nov-10 at 15:35

            I use a custom step function that I have built for a package of mine that works just fine, it is in a local copy of the package (Not yet submitted to CRAN) link to function here: step_hai_fourier

            Here is the session info (we can see healthyR.ai 0.0.2.9000 is loaded):

            ...

            ANSWER

            Answered 2021-Nov-10 at 15:35

            QUESTION

            Extract element from nested list of rolling_origin R
            Asked 2021-Nov-05 at 14:26

            I want to extract, .metrics (RMSE) from a Rolling origin forecast resampling (tibble: 52 x 5) by "id" columns which consist of slices.

            The replicating codes are given below. Here is my attempt.

            ...

            ANSWER

            Answered 2021-Nov-05 at 14:26

            After spending some time, I found a solution, which may not be very elegant though, it solves the problem.

            Source https://stackoverflow.com/questions/69849833

            QUESTION

            Recipe for XGBoost tidymodels. Error: unused argument (values)
            Asked 2021-Nov-03 at 15:09

            Currently I am doing some experiments with hyperparameter tuning for XGBoost regression on time series, using a latin hypercube sampling strategy. When running the code below, all the models fail during the tune_grid operation. The cause seems to be the recipe object. I used step_dummy() to transform the value column of my univariate time series In the .notes object appears the Error message: preprocessor 1/1: Error: unused argument (values)

            I found some other post where this issue popped up, but none of the solutions helped in my case.

            ...

            ANSWER

            Answered 2021-Oct-27 at 16:19

            It looks like the problem is that those date predictors aren't getting converted to numeric values, which xgboost needs. You did use step_dummy() but dates are not factor/nominal variables so they are not getting chosen by all_nominal(). If you explicitly choose them, this is what happens:

            Source https://stackoverflow.com/questions/69690336

            QUESTION

            How to master automated time series parameter tuning using tidymodels?
            Asked 2021-Oct-18 at 13:56

            as I come from a classical time series analysis approach, I am still kinda new to parameter tuning. As tuning all local models (couple of hundreds of time series for product demand in my case) turns out to be not even near scalability, I want to analyze first the effect of tuning time series with low accuracy values, to evaluate the trade-off between scalability and accuracy, to see if tuning is justified for a particular time series issue. When I run the code below, it seems like I didn't properly specify the ranges for the regular grid. I think so, because it seems odd, to retrieve only three combinations for a tree value with range from 50 to 2000. Is this standard behavior? Does changing the levels argument help in this case somehow? It didn't change anything in my case. Also, is there a way to retrieve the optimal number of folds for resampling, rather than guessing it? I hope for some advise or useful examples.

            Thanks in advance!

            ...

            ANSWER

            Answered 2021-Oct-18 at 13:37

            You're right on the money! Changing the levels parameter in grid_regular() is how you can increase the number of parameters to try within your range. Here's a few examples - hope this helps!

            Source https://stackoverflow.com/questions/69615806

            QUESTION

            Customise the x-axis ticks and labels for time series data in LINQPad charts
            Asked 2021-Oct-04 at 02:46

            I've got a simple CSV log file, reading it into a list and charting it is really easy in LINQPad, but I'd like to update the format and the ticks on the x-axis.

            Here's my code:

            ...

            ANSWER

            Answered 2021-Oct-04 at 02:46

            Thanks to Joe Albahari's comment I've got it working and I've also customized the tool tip on the data point.

            Using .ToWindowsChart() gives you a System.Windows.Forms.DataVisualization.Charting.Chart from there you can access the xAxis for customization. I also added a handler to the chart.GetToolTipText event to set the custom text to show both the x and y values.

            Source https://stackoverflow.com/questions/69385397

            QUESTION

            How to handle forecast data (melt and "unmelt") generated by modeltime prediction - lost variables
            Asked 2021-Sep-15 at 15:26

            below I created some fake forecast data using the tidyverse modeltime packages. I have got monthly data from 2016 and want to produce a test fc for 2020. As you can see, the data I load comes in wide format. For usage in modeltime I transform it to long data. After the modeling phase, I want to create a dataframe for the 2020 prediction values. For this purpose I need to somehow "unmelt" the data. In this process I am unfortunately losing a lot of variables. From 240 variables that I want to forecast I get only 49 in the end result. Maybe I am blind, or I do not know how to configure the modeltime functions correctly. I would really much appreciate some help. Thanks in advance!

            ...

            ANSWER

            Answered 2021-Sep-15 at 15:26

            Here is my full solution. I also have provided background on what I'm doing here: https://github.com/business-science/modeltime/issues/133

            Source https://stackoverflow.com/questions/69193491

            QUESTION

            why should the models used by modeltime_table be adjusted on the training data when applying modeltime_fit_resamples ?( modeltime )
            Asked 2021-Feb-10 at 12:30

            When working with time series through the modeltime / tidymodels framework, the following workflow is presented to verify the performance of the models with cross validation.

            ...

            ANSWER

            Answered 2021-Feb-10 at 12:30

            I believe understanding the procedure a bit more will help. When you Modeltime Resample is designed to take your model's specification and refit it repeatedly to resampled data.

            What is resampling?

            It's the idea that we want to test how our models would have performed given that the models were trained on subsets of the data. This is useful in understanding our confidence in the models and how it changes especially with time series (temporal) data. Resampling require re-training and re-evaluating the model specification on each resample (train/test 1, train/test 2, ..., train/test N).

            What is a model specification?
            • It's the parameters you've specified and model type (modeling function and engine)
            • It's not the "Fitted Model" (meaning it doesn't make predictions with your model)
            How does the internal Modeltime Resample process work?
            1. Modeltime Resample uses the fit_resamples() function from tune and applies to each model in a modeltime table containing one or more models.

            2. The refitting process ignores your "fitted model", but copies the parameters selected and the modeling specification to repeated fit (train) new models to the resamples.

            3. The result is how your model would have performed if fitted on different samples of the data. You can display the results using the plotting and table utilities.

            Resample Table and Resample Plot

            Examples from the Panel Data Tutorial:

            Source https://stackoverflow.com/questions/66032041

            QUESTION

            Download xlsx file from Google Drive in R
            Asked 2021-Jan-05 at 01:04

            I have publicly shares a small dataset on Google Drive and I have made the file accessible to anyone with the link.

            I wish to download this file into R for analysis but I am having difficulty with unzipping the file from the temp directory.

            My code looks as follows:

            ...

            ANSWER

            Answered 2021-Jan-05 at 01:04

            What you have is a URL for viewing, you should obtain the URL for editing/downloading the file.

            The following works for me.

            Source https://stackoverflow.com/questions/65571739

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install modeltime

            For those that prefer video tutorials, we have an 11-minute YouTube Video that walks you through the Modeltime Workflow.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/business-science/modeltime.git

          • CLI

            gh repo clone business-science/modeltime

          • sshUrl

            git@github.com:business-science/modeltime.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link