prediction Questions

10

Solved

i'm trying to predict next customer purchase to my job. I followed a guide, but when i tried to use cross_val_score() function, it returns NaN values.Google Colab notebook screenshot Variables: ...
Sorely asked 11/2, 2020 at 15:36

3

Solved

I would like to get a confidence score of each of the predictions that it makes, showing on how sure the classifier is on its prediction that it is correct. I want something like this: How sure ...
Implicatory asked 30/6, 2015 at 4:30

7

I am building a prediction model in python with two separate training and testing sets. The training data contains numerical type categorical variable, e.g., zip code,[91521,23151,12355, ...], and ...
Imaimage asked 26/12, 2016 at 19:54

4

Keras introduced tf.keras.preprocessing.image_dataset_from_directory function recently, which is more efficient than previously ImageDataGenerator.flow_from_directory method in tensorflow 2.x. I a...
Spirit asked 3/6, 2020 at 6:30

2

I have the following codes for creating a tidymodels workflow with lightgbm model. However, there is some problem when I tried to save into a .rds object and predict library(AmesHousing) library(tr...
Crossruff asked 27/4, 2022 at 10:40

4

I am working on an automated ML (Regression) algorithm where the flow of process is: User uploads a data -- Data Cleaning -- Encoding(Target Encoder) -- Fitting model -- results. I am completely fi...
Freemason asked 9/11, 2020 at 21:34

2

Solved

I performed a regression analyses in R on some dataset and try to predict the contribution of each individual independent variable on the dependent variable for each row in the dataset. So somethi...
Finzer asked 17/12, 2017 at 9:35

1

Solved

I'm using Pydantic model (Basemodel) with FastAPI and converting the input into a dictionary, and then converting it into a Pandas DataFrame to pass it into model.predict() function for Machine Lea...
Wisniewski asked 12/4, 2022 at 22:11

2

Solved

I have a .pth file created with Pytorch with weights. How would I be able to view the weights from this file? I tried this code to load and view but it was not working (as a newbie, I might be enti...
Chlorella asked 5/4, 2022 at 15:29

2

I'm new to Weka and I'm confused with the tool. I have a data set about fruit prices and related attributes. I'm trying to predict the specific fruit price using the data set. Since I'm new to Weka...
Extensity asked 17/11, 2012 at 17:11

8

Solved

I am receiving the error: ValueError: Wrong number of items passed 3, placement implies 1, and I am struggling to figure out where, and how I may begin addressing the problem. I don't really under...
Beaux asked 4/4, 2017 at 1:35

8

I'm using linear_model.LinearRegression from scikit-learn as a predictive model. It works and it's perfect. I have a problem to evaluate the predicted results using the accuracy_score metric. This ...

1

I'm working on a binary classification problem. I had this situation that I used the logistic regression and support vector machine model imported from sklearn. These two models were fit with the s...

1

I am working with the R programming language. Recently, I read about a new decision tree algorithm called "Reinforcement Learning Trees" (RLT) which supposedly has the potential to fit &q...
Shoemaker asked 2/11, 2021 at 2:46

3

dataset = read.csv('dataset/housing.header.binary.txt') dataset1 = dataset[6] #higest positive correlation dataset2 = dataset[13] #lowest negative correlation dependentVal= dataset[14] #dependent v...
Greyback asked 26/5, 2018 at 5:33

3

Solved

I'm trying to predict on the validation data with pre-trained and fine-tuned DL models. The code follows the example available in the Keras blog on "building image classification models using very ...
Cecilacecile asked 28/6, 2017 at 14:59

3

Solved

I'm tring to use neuralnet for prediction. Create some X: x <- cbind(seq(1, 50, 1), seq(51, 100, 1)) Create Y: y <- x[,1]*x[,2] Give them a names colnames(x) <- c('x1', 'x2') names...
Whitefaced asked 22/7, 2013 at 18:18

2

Some modeling functions, e.g. glmnet(), require (or just allow for) the data to be passed in as a predictor matrix and a response matrix (or vector) as apposed to using a formula. In these cases, i...
Bridges asked 24/4, 2017 at 2:18

3

Solved

I am using a multiple output model in Keras model1 = Model(input=x, output=[y2, y3]) model1.compile((optimizer='sgd', loss=cutom_loss_function) my custom_loss function is def custom_loss(y_tru...
Ophiolatry asked 25/5, 2017 at 4:15

4

First of all, I must say, I'm a beginner to this AI things. I followed most of the tutorials about stock market predictions and all of them are pretty much same. These tutorials using a data set an...
Antimasque asked 18/2, 2020 at 3:18

5

Solved

I found peculiarity while using predict and lm function in R. I got different results for data frame and vector for same data. DataFrame code: data(mtcars) fitCar<-lm(mtcars$mpg~mtcars$wt) pr...
Babineaux asked 13/12, 2014 at 23:51

1

Solved

I successfully trained a model using Object Detection APIs for TF 2 on TPUs which is saved as a .pb (SavedModel format). I then load it back using tf.saved_model.load and it works fine when predict...

5

I am currently working on a predictive model for a churn problem. Whenever I try to run the following model, I get this error: At least one of the class levels is not a valid R variable name. This...
Ingaingaberg asked 20/5, 2017 at 10:24

3

I am trying to make and test a linear model as follows: lm_model <- lm(Purchase ~., data = train) lm_prediction <- predict(lm_model, test) This results in the following error, statin...
Spode asked 27/7, 2018 at 6:46

1

I have 3 months of data (each row corresponding to each day) generated and I want to perform a multivariate time series analysis for the same : the columns that are available are - Date Capacit...
Hypogynous asked 17/11, 2019 at 13:36

© 2022 - 2024 — McMap. All rights reserved.