Questions tagged [predict]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 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. ...
user avatar
  • 41
0 votes
0 answers
16 views

Why do i need to write regressor.predict(x_train)?

Im currently learning data science and i was unable to understand a particular part in linear regression model. The following is my code - ...
user avatar
  • 1
0 votes
1 answer
157 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 ...
user avatar
0 votes
1 answer
30 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. ...
user avatar
  • 1
1 vote
0 answers
94 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 ...
user avatar
0 votes
1 answer
226 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: ...
user avatar
  • 207
1 vote
1 answer
703 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 ...
user avatar
3 votes
2 answers
5k 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. ...
user avatar
  • 93
2 votes
1 answer
26 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: ...
user avatar
  • 141
2 votes
1 answer
484 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 ...
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 ...
user avatar
0 votes
1 answer
235 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 ...
user avatar
1 vote
0 answers
40 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 ...
user avatar
  • 11
1 vote
1 answer
50 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 ...
user avatar
5 votes
1 answer
1k 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
-1 votes
1 answer
764 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 ...
user avatar