RuntimeError: Runtime Exception. boost::bad_get: failed value get using boost::get

User 5336 | 6/28/2016, 10:58:16 PM

train_data.columns Index([u'Product Name', u'Company name', u'created', u'company_id', u'rating'], dtype='object')

type(train_data) pandas.core.frame.DataFrame

factorizationmodel = graphlab.factorizationrecommender.create(traindata,userid='Company name', itemid='Product Name', target='rating') personalizedmodel = graphlab.itemsimilarityrecommender.create(traindata, userid='Company name', item_id='Product Name')

I am getting the same error for these two models. RuntimeError: Runtime Exception. boost::bad_get: failed value get using boost::get

Can someone please help me out?

Comments

User 16 | 6/29/2016, 12:25:02 AM

graphlab.factorization_recommender.create takes an SFrame not a pandas data frame. You can create a SFrame from a pandas data frame by graphlab.SFrame(train_data)