Questions tagged [predict]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

How do I use ML models to estimate current stress level based on past data?

I am new to machine learning and I cannot understand the difference between estimating current stress level and predicting future stress levels based on historical data. I have been told these are two ...
user123456789's user avatar
0 votes
1 answer
30 views

calculate the predicted value based on coefficient and constant in python

i have the coefficients and the constant (alpha). i want to multiply and add the values together like this example. (it has to be done for 300000 rows) Prediction = constant + (valOfRow1 * col1) + (-...
Mostafa Bouzari's user avatar
0 votes
1 answer
20 views

ValueError: operands could not be broadcast together with shapes (13159,3) (13159,)

I am trying to predict the target variable and finding the difference from actual variable using polynomial regression. However predicted variable is an array of 3 dimension with the shape as (13159,3)...
Hariprasad Rao's user avatar
0 votes
0 answers
31 views

Building a graphic neural network (GNNs) model from my own dataset (tabular dataset)

I am intended to build a GNN. I am using my own dataset (tabular dataset), so to build a graph I can't use benchmark datasets as I have my own dataset. How can I build a graph first and then build a ...
Abdullah's user avatar
0 votes
0 answers
10 views

R - Using XTS objects: newdata has X rows but variables have X rows

My observations come from an xts object, which is indexed to a time, the same as my newdata? Where X is a xts object indexed to dates from 01-01-2002 to 01-12-2022 including 26 variables ...
Alberto Armijo's user avatar
0 votes
0 answers
21 views

Different results from predict() function and manual calculations of cox model

I have a cox model with variables of age, living environment, Rankin, side of stroke, and systolic blood pressure. Summary of model is: ...
ikeagoddess's user avatar
1 vote
1 answer
38 views

How to predict probability of an event when we have a month to month data?

I'm trying to find references about how to proceed to get the probability of an event happening when we have "temporal data" in our table My data is basically: hex_id: id of the object date:...
Leonardo Ferreira's user avatar
1 vote
1 answer
1k views

XGboost Classifier predicits different results for same samples depending on test dataset size

I train a simple xgboost classifier model with the following lines. ...
akonr's user avatar
  • 41
0 votes
1 answer
696 views

How can I choose num of epochs and batch size?

I have the coco 2014 dataset and need to train it as training is around 82700 and testing is 40500. However, I got the same sentence with different values every time with ...
user5520049's user avatar
0 votes
1 answer
57 views

Get the prediction probability using prediction function

I'm new to SVM models. I took custom SVM classifier from the github. In there standard predict function was overwritten by custom predict function. ...
AbRe's user avatar
  • 1
1 vote
0 answers
202 views

Algorithm to predict the best time to recall a client

Let's immagine I have a dataset of calls from a call center to clients. Each call has a lot of information like at what time it was made, duration, if it was answered or not, if the client purchased ...
Data_Driven's user avatar
0 votes
1 answer
579 views

The sum of multi-class prediction is not 1 using tensorflow and keras?

I am studying how to do text classification with multiple labels using tensorflow. Let's say my model is like: ...
Feng Chen's user avatar
  • 207
1 vote
1 answer
2k views

Python sklearn model.predict() gives me different results depending on the amount of data [closed]

I train my XGBoostClassifier(). If my testing set has: 0: 100 1: 884 It attempts to predict 210 1's. Around 147 are wrong (False positives) and 63 1's correctly ...
morpho4444's user avatar
3 votes
2 answers
7k views

How to predict multiple images from folder in python

Here is the code for the Prediction of multiple images from the folder. But getting the same label(class) for all the images.I'm not able to find out why every image shows the same label. ...
Rina's user avatar
  • 173
2 votes
1 answer
29 views

(Not a programming question) Is there a common word to indicate predict or forecast

The general understanding is: Predict: past value - could be data the model has seen (data from train set) or past data model has not seen (data from test set) (together in-sample data) Forecast: ...
gammay's user avatar
  • 141
2 votes
1 answer
691 views

How do I predict a set of frequently bought items?

I have a dataset of retail transactions wherein different users buy certain items together. For example, a user A buys a toothpaste, a toothbrush and a floss at the same time, and a user B buys a ...
Dominique Vernado's user avatar
3 votes
2 answers
1k views

What is the better way to predict classes for the models developed using the functional API in Keras

We can predict the class for new data instances using the Sequential classification model in Keras using the predict_classes() function. What is the way to predict the class for models that developed ...
Mohammad Nur Nobi's user avatar
0 votes
1 answer
384 views

How to model predict on Tensorflow model that has feature columns?

So far all the coding examples using feature columns do not have examples of how to format their model.predict(...). I tried using raw string and also putting them ...
cody.tv.weber's user avatar
1 vote
0 answers
57 views

How can I get the predict future following value using Tensorflow LSTM?

Thank you for reading. I'm not good at English. I am wondering how to predict and get future time series data after model training. I would like to get the values after N steps. So, I used the time ...
gilj's user avatar
  • 11
1 vote
1 answer
54 views

Unable to make accurate predictions?

I have a dataset of diabetes patients and I am trying to predict the next blood glucose level. I have attached an image below and I have about 1600 records in that csv file containing data of 10 ...
HelloWorld's user avatar
5 votes
1 answer
2k views

Calculate confidence score of a neural network prediction

I am using a deep neural network model to make predictions. My problem is a classification(binary) problem. I wish to calculate the confidence score of each prediction. As of now, I use ...
yamini goel's user avatar
2 votes
2 answers
2k views

Issue with predict generator keras

I'm new with keras with tensorflow backend and I'm trying to do transfer learning with pretrained net. The problem is that the accuracy on validation set is very high, around the 90% , but on test set ...
Agostino Dorano's user avatar
0 votes
1 answer
1k views

Implementation explanation for predict_proba in RandomForestClassifier- sklearn

Attached is an extract from the RandomForestClassifier documentation of sklearn. The last line,"The class probabilities of a single tree is the fraction of samples of the same class in a leaf." is ...
Aditya Kumar's user avatar