Questions tagged [prediction]

For questions related to statistical prediction, especially for programming tasks.

In science, a prediction is a rigorous, often quantitative, statement, forecasting what will happen under specific conditions; for example, if an apple falls from a tree it will be attracted towards the center of the earth by gravity with a specified and constant acceleration. The scientific method is built on testing assertions that are logical consequences of scientific theories. This is done through repeatable experiments or observational studies.

Mathematical equations and models, and computer models (e.g., ), are frequently used to describe the past and future behaviour of a process within the boundaries of that model.

In microprocessors, permits avoidance of pipeline emptying at branch instructions. In engineering, possible failure modes are predicted and avoided by correcting the mechanism causing the failure.

2846 questions
11
votes
2 answers

How to generate a prediction interval from a regression tree rpart object?

How do you generate a prediction interval from a regression tree that is fit using rpart? It is my understanding that a regression tree models the response conditional on the mean of the leaf nodes. I don't know how to get the variance for a leaf…
goldisfine
  • 4,742
  • 11
  • 59
  • 83
11
votes
3 answers

Weather forecast using a neural network

I am trying to write a program for weather forecasting using backpropagation. I am a beginner in this field. I have historical data with different parameters like temperature, humidity, wind speed, rainfall etc. I am confused about how to provide…
amey
  • 127
  • 1
  • 3
11
votes
3 answers

Predicting Football match winners based only on previous data of same match

I'm a huge football(soccer) fan and interested in Machine Learning too. As a project for my ML course I'm trying to build a model that would predict the chance of winning for the home team, given the names of the home and away team.(I query my…
keithxm23
  • 1,280
  • 1
  • 21
  • 41
10
votes
4 answers

Predicting Values with k-Means Clustering Algorithm

I'm messing around with machine learning, and I've written a K Means algorithm implementation in Python. It takes a two dimensional data and organises them into clusters. Each data point also has a class value of either a 0 or a 1. What confuses me…
DizzyDoo
  • 1,489
  • 6
  • 21
  • 32
10
votes
4 answers

how to guess the nationality of a person from the surname?

What approach can I use to predict the nationality of a person from the surname? I have a huge list of texts and surnames of authors. I would like to identify which texts have been written by latin-language speakers and which texts have been written…
dalloliogm
  • 8,718
  • 6
  • 45
  • 55
10
votes
1 answer

Java Support for PMML

I am new in PMML: Predictive Model Markup Language (www.dmg.org) and I was wondering if there is some kind of Java support (Open Source / professional) for creating/parsing PMML files. Initially I only have in mind the possibility of…
Oscar
  • 101
  • 1
  • 4
10
votes
1 answer

Non-linear multivariate time-series response prediction using RNN

I am trying to predict the hygrothermal response of a wall, given the interior and exterior climate. Based on literature research, I believe this should be possible with RNN but I have not been able to get good accuracy. The dataset has 12 input…
10
votes
1 answer

Keras taking very long time to make first prediction following model.load()

I am loading a model in keras with model.load() and am finding that the first prediction is taking more than 10x longer to calculate than follow on predictions, any ideas why this could be occurring or suggestions to make the load-initialise-first…
Denym
  • 181
  • 1
  • 8
10
votes
1 answer

difference in predictions between model.predict() and model.predict_generator() in keras

When I use model.predict_generator() on my test_set (images) I am getting a different prediction and when I use mode.predict() on the same test_Set I am getting a different set of predictions. For using model.predict_generator I followed the below…
Abhijit Balaji
  • 1,870
  • 4
  • 17
  • 40
10
votes
5 answers

how to suggest gcc compiler more probable branch

Example: if (almost_always_false_condition) { // do something } Is there a way to suggest compiler that in 99% condition will be false. The condition calculation takes ~60 cycles to be checked, and it cannot be calculated at compile time by…
Karol
  • 301
  • 1
  • 8
9
votes
1 answer

Function for testing system stability, which receives predicted time series as input

I want to write a function that gets a time series and a standard deviation as parameters and returns an adjusted time series which looks like a forecast. With this function I want to test a system for stability, which gets a forecasted time series…
9
votes
2 answers

How to save and restore Keras LSTM model?

I have trained a LSTM network to predict stock price.But I don't know how to save and restore it. Follow is my code: CONST_TRAINING_SEQUENCE_LENGTH = 12 CONST_TESTING_CASES = 5 def dataNormalization(data): return [(datum - data[0]) / data[0]…
William
  • 3,724
  • 9
  • 43
  • 76
9
votes
2 answers

Predict using felm output with standard errors

Is there way to get predict behavior with standard errors from lfe::felm if the fixed effects are swept out using the projection method in felm? This question is very similar to the question here, but none of the answers to that question can be used…
pbaylis
  • 1,529
  • 11
  • 19
9
votes
1 answer

How to get original values after using factorize() in Python?

I'm a beginner trying to create a predictive model using Random Forest in Python, using train and test datasets. train["ALLOW/BLOCK"] can take 1 out of 4 expected values (all strings). test["ALLOW/BLOCK"] is what needs to be predicted. y,_ =…
Parvathy Sarat
  • 395
  • 1
  • 6
  • 22
9
votes
1 answer

Prediction - Neural network for regression predicts same value

I am trying to predict median value of owner-occupied homes, its a worked example which is giving a good…
Sam
  • 191
  • 1
  • 12