tensorflow/decision-forests

label not found in tfdf.keras.pd_dataframe_to_tf_dataset

284nnuS opened this issue · 3 comments

Hello,

I have a excel file with this column name :
image
But when i run the command :
tfdf.keras.pd_dataframe_to_tf_dataset(train_df, label="Applied Solutions")
I received the error KeyError: "['Applied Solutions'] not found in axis".
How can i solve that?
Please help me.

Thanks

rstz commented

Hi,
I'm not sure what you're exactly feeding to TF-DF. Could you please post a minimal reproducible example?

Hi, I'm not sure what you're exactly feeding to TF-DF. Could you please post a minimal reproducible example?

Hi,
I'm trying to use random forest for classification which applied solution is label column and merged column is data train like that :
image

rstz commented

This is not a useful repro, please provide Python code. Closing this issue for now.