Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Need to map(create dataframe) my test prediction (test_pred) with actual data set which have Customer column

$
0
0

@KumarP wrote:

I have actual dataset (Mydata). after cleaning/model building , I have predicted my result with test data (test_matrix). Now I need to map(create dataframe) my test prediction (test_pred) with actual data set which have Customer column. Please suggest me, how to connect test_pred with Customer for production purpose.

str(Mydata)
‘data.frame’: 1686584 obs. of 39 variables:
customer : Factor w/ 843292 levels "00000D47-1756-E311-8772-0050569C51C6",..: 527360 790193 150129 140965 417954 101988 473840 278324 807556 832400 ... year : int 2016 2016 2016 2016 2016 2016 2016 2016 2016 2016 …

test_pred <- predict(bst_model, newdata = test_matrix)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles