Questions tagged [predictive]
77 questions
1
vote
1 answer
Error in numeric(h) : vector size cannot be NA/NaN
I worked on Tableau and R, I want to forecast school number yearly. I created two calculated field :
dataforcast calculated field
DATE(IF [School Year] == { MAX([School Year]) }
THEN DATEADD('year', 1, [School Year]) ELSE [School Year]…

arwa
- 13
- 1
- 1
- 5
1
vote
0 answers
Beginner R Predictive Model For 2 Factors
I'm trying to build a model that will predict how many deals will be done by one of our offices for a given month.
I started trying to learn how to build a model like this using this article:…

walkery
- 11
- 2
1
vote
0 answers
Negative Binomial Output?
I was wondering if anyone could give me some advice on the negative binomial model I have run. Basically I am trying to predict the number of people (numerical) by a variety of categorical variables and a few continuous variables (e.g. Weight 1).…

Damiano Weitowitz
- 41
- 3
1
vote
1 answer
Setting Different Levels of constants for categorical variables in R
Will anyone be able to explain how to set constants for different levels of categorical variables in r?
I have read the following: How to set the Coefficient Value in Regression; R and it does a good job for explaining how to set a constant for…

Jordan
- 1,415
- 3
- 18
- 44
0
votes
0 answers
How to solve "Precision is Ill-defined" message while training my ML model using logistic regression?
I am working on an ML model for prediction, when I ran Logistic Regression model for my training data, the precision came to 0 with the below message-
D:\Anaconda\lib\site-packages\sklearn\metrics\_classification.py:1344: UndefinedMetricWarning:…

Vaibhava Srivastava
- 11
- 3
0
votes
0 answers
getting Rank deficiency error in cross validation
Hi I am trying to cross validate my multiple logistic predictive model. I have used the following code before on the same data before and it never gave me an issue but now its giving the rank deficiency error. Any help would be…

Kierrajames
- 21
- 3
0
votes
0 answers
Predictive model performance evaluation (RMSE)
lr = LinearRegression()
lasso = Lasso()
dt = DecisionTreeRegressor(random_state=375)
rf = RandomForestRegressor(random_state=375)
xgboost = xgb.XGBRegressor(random_state = 375)
classifiers = {
'Linear_Regression': lr,
'Lasso_Regression' :…

Jleeca
- 29
- 3
0
votes
0 answers
Which method should be used for Predictive Maintenance for Bearings? I tried Naive-Bayes but i think its not effective enough
I have multiple system and they all have high speed bearings. It is not wanted that the bearing failure happening during the production. So i tried to write a program that tries to predict bearings life.
I tried to use Naive Bayes method but i…

Andumir
- 11
- 2
0
votes
0 answers
Inventory forecasting: Using Centred Moving Average or Time Series Analysis?
everyone. A little bit of background information: so I have been assigned to create a model simulation to make a time series forecasting concerning the time precise of products in a warehouse that will exceed its capabilities to store any more…

Ester Johana
- 19
- 8
0
votes
2 answers
Cannot find 'Submission.csv' File in 'Google Colab
I have run a predictive model in Google Colab and saved the 'Submission.csv' file. Now I don't know how to locate the file on colab and upload it to the comp. site. Can anyone advice please and thank you.
The submission file was saved but I cannot…

Augustine Williams
- 15
- 1
- 6
0
votes
0 answers
I want to assign a specific column of dataframe to a list to carry out exponential smoothing forecasting
I have a dataframe named df1 in which I have 4 columns. I want to use 2 columns as a list in analysis to exponential smoothing forecast
I've pulled a code where I'm getting the desired result but I want to replace the list in the existing code with…

Faizan
- 3
- 2
0
votes
0 answers
How to perform dynamic optimization for a nonlinear discrete optimization problem with nonlinear constraints, using non-linear solvers like SNOPT?
I am new to the field of optimization and I need help in the following optimization problem. I have tried to solve it using normal coding to make sure that I got he correct results. However, the results I got are different and I am not sure my way…
0
votes
0 answers
How to make a predictive model using a timeseries data consisted of binary information?
How would you do regression to predict the sate in a future time:
SeriesYear MonthDay State
0 1 2019 12 13 [1, 0, 0, 1, 0, 0]
1 2 2019 12 17 [0, 1, 0, 0, 1, 0]
2 3 2019 12 20 [0, 0, 1, 0,…

Rebel
- 472
- 8
- 25
0
votes
0 answers
Using Linear Regression and Model Selection Techniques to Predict Y based on Xs in R
I attempted to utilize the principles of linear regression and feature selection to predict a target variable (Y) based on a set of predictor variables (X1, X2, X3, X4, X5, X6, X7, and X8). I started by implementing a full model, which included all…

proxyy
- 11
- 2
0
votes
0 answers
How do I combine the posterior distribution of the parameters with new data to get predictions in R-INLA?
I fit a model using R-INLA, with a mix of linear and non-linear effects (but no spatial), and I understand I can generate samples of the posterior distribution of the parameters by the inla.posterior.sample() function, but I can't work out how to…

Erin
- 1
- 1