Questions tagged [predictive]
77 questions
4
votes
2 answers
sklearn - Predict each class's probability
So far I have resourced another post and sklearn documentation
So in general I want to produce the following example:
X = np.matrix([[1,2],[2,3],[3,4],[4,5]])
y = np.array(['A', 'B', 'B', 'C', 'D'])
Xt =…

bmc
- 817
- 1
- 12
- 23
3
votes
1 answer
Can't get Predictive Keyboard Emoji suggestions to show up in TextEditor/TextField
I have a simple TextEditor in my UI. But whenever the keyboard shows up and I type, I can't get the predictive toolbar on top of the keyboard to suggest emojis.
I tried with Instagram, Facebook, Twitter, Message app, Notes app they all work fine!
I…

KBog
- 3,800
- 1
- 25
- 31
3
votes
1 answer
Text Prediction functionality for Custom Keyboard
I have developed a Basic Keyboard.
Here is how it looks :
Now, I want to add the Predictive Text Functionality.
I did some research and found some information about Backend part of it. Which showed how the keyboard can learn from user to user.
But…

Detained Developer
- 1,134
- 2
- 13
- 33
2
votes
1 answer
I'm trying to understand the shap values of a predictive model below. Please help me understand what's the o/p of value & explainer means?
x_train,x_test,y_train,y_test=train_test_split(X,Y,test_size=0.3,random_state=42)
rf_model= RandomForestClassifier()
rf_model.fit(x_train, y_train)
rf_pred = rf_model.predict(x_test)
import shap
rf_explainer = shap.TreeExplainer(rf_model,…

User1011
- 143
- 1
- 10
2
votes
1 answer
Is there a way in R to determine which levels within the variables are most important in the GBM predictive model?
I constructed a predictive model using the GBM package in R. I have good results and I am able to see the feature importance list to see which variables are most important to the model. I am struggling with an editor's question asking for direction…

ClareFG
- 65
- 1
- 11
2
votes
0 answers
Prior predictive distribution
How to generate samples form prior predictive distribution for simple regression models?
it is straightforward to generate samples for a binomial distribution with a beta prior, but in regression models, can we simulate both the covariate and…

Negin Faraji
- 21
- 1
2
votes
0 answers
R 'msm' Package for Markov model in discrete time
I'm trying to build a model on loan delinquency status (having 6 states) and transitions over a time period of one month. I want to use a Markov model to predict transition probabilities and also want to add covariates to the probabilities. But i'm…

ANP
- 51
- 1
- 9
1
vote
5 answers
R copy data in row of a data frame but subtract one column value by 1
I'm trying to create hypothetical data for a predictive analysis. I have a set of averages I plan to apply my predictive model to. However, I want to expand my DF with various values in the Agent_Count column. Is there a way to copy columns 2-4 to…

PeatyBoWeaty
- 31
- 6
1
vote
1 answer
ambiguous or conflict in LL1 grammar for a shell in C
i'm implementing a LL(1) parser for a project of doing a shell implementation.
i'm stuck trying to resolve conflicts in my grammar :
Parsing mode: LL(1).
Grammar:
1. COMMAND_LINE -> COMPLETE_COMMAND PIPED_CMD
2. PIPED_CMD -> PIPE…

Corecaps
- 23
- 6
1
vote
0 answers
How to measure consistency of members within a group?
Context: We run a collection of book clubs where members meet each week. Members are assigned to a specific club, but are free to join any club on any week. E.g., I may be assigned to the Tuesday club, but I can join the Monday or Thursday club if…

John Colarusso
- 11
- 1
1
vote
0 answers
How would I use historical data of wind generation to make a thousand continuous distribution curves
I am stumped on a problem. Say you have the last ten years of wind generation data (let's pick August) in the form of every hour of every day. How would I go about creating a set (say of 1,000) wind generation profiles using this historical…

micoconnell
- 59
- 7
1
vote
1 answer
Azure - prediction over time
I am currently studying machine learning and predictive analysis so thought a good way to start would be using Azure ML Studio.
I did the Car Price Tutorial quite successfully however I now want to do something different.
I thought about using…

Sam Kirk
- 11
- 1
1
vote
1 answer
Generate High, Medium, Low categories from a skewed distribution
I have been working on a Churn Prediction use case in Python using XGBoost. The data trained on various parameters like Age, Tenure, Last 6 months income etc gives us the prediction if an employee is likely to leave based on its employee ID.…

Gursharan Singh
- 364
- 6
- 19
1
vote
2 answers
How can MAPE be calculated if some of the actuals in the dataset are 0 values?
I am new to datascience and trying to understand difference evaluation in forecast vs actuals.
Lets say I have actuals:
27.580
25.950
0.000 (Sum = 53.53)
And my predicted values using XGboost are:
29.9
25.4
15.0 (Sum = 70.3)
Is it…
user12248414
1
vote
0 answers
H2OAutoEncoderEstimator Anomaly Prediction REST API
I am creating H2o Autoencoder Anomaly Detection model in h2o python.When calculating anomalies using (test_rec_error=model.anomaly(test.hex,per_feature=false) I am getting one reconstruction error for each record.But When I am trying to…

Sarvendra Singh
- 109
- 1
- 1
- 9