The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Attributes do not match
Hello, I wanted to create multi-label classifier with 13 labels and I successfully did the training and testing phases. But the problem when I loaded the model, as shown in below image, there was an error message that attributes do not match.
I attached the model development as well to make sure all good.
Thanks in advance!
I attached the model development as well to make sure all good.
Thanks in advance!
0
Best Answer
-
lionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn@Nawaf,
You can find in attached file a "training process" which gives a special role to all attributes you want to predict (with a Loop attributes operator).
Please run this "training" process first and then run your "Prediction.rmp" process. In my case, this last process is working fine.
Hope this helps,
Regards,
Lionel1
Answers
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
In order we can reproduce what you observe and thus understand what is going on, can you please share your process and data ?
Regards,
Lionel
This is its main and inner process
This is a sample of data need to be predicted
This is its main and inner process
Hopefully you could help me to discover the error
To be honest, the pictures you shared are too small to be read, thus these pictures are unusable :
Can you please share :
- your RM process (.rmp file) via File -> Export Process
- your different data files (a priori Excel files)
Thank you for your understanding,
Regards,
Lionel
Regards,
Lionel :
PS : I'm working on your process, I think that you did not connect the wordlist got from your training process (that you Store) to the
word input port of your Process documents from data of your "prediction process".
This way the word attributes are strictly the same in your "training process" and in your "prediction process" which is a mandatory condition for your "prediction process" to work as explained by @Telcontar120...
So wordlist is the problem?
Please try this "prediction process" (in attached file) with your real data.
You will see that I connected the wordlist that you store in your "training process" to the wordlist input port of your Process Documents from Data of your "prediction process".
Please try it and tell me if the prediction process is working fine now ….
Regards,
Lionel
PS : Note that this process will still raise an error because you have only missing values on your testing excel file...
Is this model for training or unseen data prediction?
The model I shared is for unseen data prediction (to be executed AFTER execution of the training process)
Regards,
Lionel
Sorry for the confusion but if you check both files, you can see I divided this model into two phases and did the wordlist connection in prediction file
I think I understood: it is linked to the fact that you did not give a "special role" to the attributes you want to predict (the labels) :
To be sure to understand you want to predict all your attributes (surveillance, compulsion etc. ) based on your "Text" attribute" ,right ?
Regards,
Lionel
I did but gave the same error