Questions tagged [predict]
20 questions
5
votes
1 answer
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 predict_proba of sklearn to get probability of a class and…
yamini goel
- 761
- 3
- 7
- 14
3
votes
2 answers
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.
# import the necessary packages
from tensorflow.keras.models…
Rina
- 169
- 1
- 13
3
votes
2 answers
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 using the functional API?
For example, I have a…
Mohammad Nur Nobi
- 41
- 5
2
votes
1 answer
(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: future value - data which neither model or user has…
gammay
- 141
- 3
2
votes
1 answer
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 toothpaste, a shampoo and a soap together.
I'm…
Dominique Vernado
- 21
- 1
2
votes
2 answers
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 the accuracy is very bad, less that 1%.
I…
Agostino Dorano
- 61
- 5
1
vote
0 answers
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 something (the call center is selling stuff), and…
Data_Driven
- 11
- 2
1
vote
1 answer
Python sklearn model.predict() gives me different results depending on the amount of data
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 predicted (True positives).
Then I increase my testing sample:
0: 15,000
1: 884
It…
morpho4444
- 21
- 7
1
vote
0 answers
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 series in the Tensorflow tutorial to practice…
gilj
- 11
- 3
1
vote
1 answer
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 patients. Each patient is uniquely identified by the…
HelloWorld
- 227
- 1
- 2
- 9
1
vote
1 answer
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 different problems and require a different…
user123456789
- 13
- 2
1
vote
1 answer
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: monthly date (2018-01 to 2022-12)
var1: binary…
Leonardo Ferreira
- 111
- 3
1
vote
2 answers
XGboost Classifier predicits different results for same samples depending on test dataset size
I train a simple xgboost classifier model with the following lines.
xgb_model = xgb.XGBClassifier(objective="binary:logistic", random_state=42)
xgb_model.fit(X_train, y_train)
ypred_1 = xgb_model.predict(X_test_1)
ypred_2 =…
akonr
- 51
- 5
0
votes
1 answer
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 model.pedict() as I used one epoch only. Now, how can I decide the right…
user5520049
- 125
- 7
0
votes
1 answer
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.
def predict(self, instances):
predictions = []
for instance in instances:
…
AbRe
- 1
- 3