Questions tagged [predict]

Prediction of values based on model objects.

Predictive models are statistical or algorithmic models for use in prediction tasks. These tend to arise in data-intensive contexts, hence there is a strong association with statistics and machine learning.

Tag Usage

Questions on tag should be about implementation and programming problems, not about the statistical or theoretical properties of the technique. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

1574 questions
0
votes
1 answer

How to predict the character in this k-means

Iam doing hand written character recognition After executing i got output like This My aim is to predict the character of the output image file like test and i used this k-means File Any one please help me to predict the character of the output…
0
votes
0 answers

Error for predict() with lmer

I'm using a leave-one-out method to evaluate how well a model with one datapoint excluded predicts that datapoint (rotating through all datapoints). The code below has successfully run on essentially the same data with a slightly different DV, so…
0
votes
0 answers

Error in Variables (EiV) prediction intervals

In R, I have data in a dataframe (y,x1,x2,x3) and a model (lm(y ~ x1+x2+x3)). What package(s) or function(s) will help me (easily) translate this data (or model) into an Error in Variables model that will calculate prediction intervals for predicted…
jtd
  • 179
  • 7
0
votes
0 answers

time series analysis with statsmodels - irregular time interval

I am analyzing financial data time series with statsmodels, specifically arima. I want to make a prediction, but I am not sure how to deal with the irregular time intervals. I am getting the error ValueError: ordinal must be >= 1. What should I do…
user2857014
  • 507
  • 3
  • 10
  • 22
0
votes
1 answer

Predict with a VECM with exogen variables

After having estimated a VECM model with stationary exogen variables, I would like to compute a prediction with the predict function and the newdata argument. I'm using the Dynts library that offers the possibility to compute VECM models with…
Stéphanie C
  • 809
  • 8
  • 31
0
votes
0 answers

Run model on each column and save each prediction output

I am trying to compile a code that runs a model on each column and saves each prediction into a data.frame. I am probably missing a basic step because the result only saves data for the last prediction. It would be great if someone could give me a…
tsg
  • 21
  • 4
0
votes
1 answer

Possible bug in Caret function predict.gb()?

It seems to me that I’ve discovered a bug in the performance of the predict() function for method=gbm in the Caret package in R. I'm curious to know if others agree, or if someone has an explanation for the behavior of this function. 1. Generate…
Jeff W
  • 1
0
votes
1 answer

Confidence intervals in a ggplot2 graph and values obtained using predict function in R are not the same

This is my data (EXAMPLE): EXAMPLE<-data.frame( X=c(99.6, 98.02, 96.43, 94.44, 92.06, 90.08, 87.3, 84.92, 82.14, 79.76, 76.98, 74.21, 71.03, 67.86, 65.08, 62.3, 59.92, 56.35, 52.38, 45.63, 41.67, 35.71, 30.95, 24.6, 17.86, 98.44, 96.48,…
antecessor
  • 2,688
  • 6
  • 29
  • 61
0
votes
1 answer

Efficiently use predict.glm with multiple models

I am weighing the efficacy of using one monolithic model, versus splitting out in to two different models (a split model) on about 100,000 rows of data. To do so, I am getting results from my split model like so: preds <- numeric(nrow(DF)) for (i in…
user1775655
  • 317
  • 2
  • 8
0
votes
1 answer

How to get ksvm to predict non-scaled values after scaled training

When I run an SVM with ksvm from the kernlab package, all the outputs from the predict command on my final model are scaled. I know this is because I initiate scaled = T but I also know scaling your data is preferred in SVM modeling. How can I…
gtnbz2nyt
  • 1,465
  • 3
  • 17
  • 33
0
votes
1 answer

Any reason why these instance could be misclassified?

I started off with two files training & testing. Then using libsvm I scaled both those files to training.scale and testing.scale Then using grid.py (part of libsvm) I ran training.scale and and recieved some cross validation values: C = 512 gamme =…
Ross Watson
  • 65
  • 1
  • 11
0
votes
0 answers

Predicted coefficients from LASSO cannot display the right Header of coefficients for large sample

I am running a regression using LASSO for a dataset with 102 predictors. the dataset was correctly read,and names(murder) gives me the correct Header. >library(glmnet) >murder=read.csv(file="CommViolPredUnnormalizedData.csv", header = TRUE) After…
0
votes
1 answer

Encog predictive neural network results

I have been using the Encog Neural Net workbench (version 3.2) to run the sunspot prediction routine and have noticed that when changing the future prediction window to greater than 1 the results in the sunspot_output.csv appear to be time offset so…
dnvwind
  • 1
  • 1
0
votes
2 answers

Predict future values using highcharts/Highstock

I need to predict the future values based on given set of data. I found in the following link a method of obtaining trend line moving average. http://www.highcharts.com/plugin-registry/single/16/technical-indicators jsfiddle is here…
Madweer
  • 11
  • 1
  • 2
0
votes
1 answer

too short fitted values for multinomial in R

Kind of easy question for the evening... I got the models and its marginal…
Zyta
  • 73
  • 1
  • 7