You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if there's a bug with process_unlabeled or if it is my data. Fails with error - 'AttributeError: 'MatchingBatch' object has no attribute 'id''
#86
Open
iamkavinarasu opened this issue
Jun 14, 2021
· 3 comments
I have a train data that looks like the above screenshot.
I have a validation dataset that looks like the above screenshot.
And the unlabelled dataset that looks like this.
Now, it is all good till the training happens and it fails with the error as shown in this screenshot (
) while it tries to run on the unlabelled dataset.
This is how the code looks like - (
)
Please help me out on this.
The text was updated successfully, but these errors were encountered:
@sidharthms - I'm sorry for bothering you, but did you have time to look into this? It'd be a very big help if you can help me find out if it is my data that is being wrongly structured, or if it's a bug? Thank you so much!
@iamkavinarasu I am not sure if you still need help with this, but for future reference: changing the encoding of my unlabeled dataset from UTF-8 BOM to UTF-8 fixed it for me.
Ok so I was getting the same error and the reason was because the candidate's(as per the documentation) dataframe had to have the same columns as the train dataframe and I had to drop the id column(or ignore it as we did with the extra left/right id). That was the only way of running dm.data.process_unlabeled but when I went ahead and ran predictions I got an error saying there was no ID column.
And @spycherf 's solution worked!
(When saving to csv I just added the encoding option and then I was able to run dm.data.process_unlabeled with the id column and run predictions afterwards)
I have a train data that looks like the above screenshot.
I have a validation dataset that looks like the above screenshot.
And the unlabelled dataset that looks like this.
Now, it is all good till the training happens and it fails with the error as shown in this screenshot (

) while it tries to run on the unlabelled dataset.
This is how the code looks like - (

)
Please help me out on this.
The text was updated successfully, but these errors were encountered: