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
"Setting Custom Weights From Example Set Table"
Hi Everyone,
I have a table of attribute names and corresponding weights independently computed from outside rapid miner. I need to convert this Example Set into a weights type. I assumed that Data to Weights would do this for me, however it seems that it only creates a weight set from the attributes so that each weight set to 1... what is the purpose of this?
I know there is the weight by user specification but that requires manual setting of each attribute weight. I have 765 attributes and weights that I cannot manually enter.
How Can I generate a weight table for use in rapid miner from my own data?! ???
Thanks,
-Gagi
I have a table of attribute names and corresponding weights independently computed from outside rapid miner. I need to convert this Example Set into a weights type. I assumed that Data to Weights would do this for me, however it seems that it only creates a weight set from the attributes so that each weight set to 1... what is the purpose of this?
I know there is the weight by user specification but that requires manual setting of each attribute weight. I have 765 attributes and weights that I cannot manually enter.
How Can I generate a weight table for use in rapid miner from my own data?! ???
Thanks,
-Gagi
Tagged:
1
Answers
I manually added the first 2 and last lines to complete the weights file. Once I imported the file I saved the weight result in the repository for easy access.
It would make sense for the DATA to Weight operator to be able to handle this function also. For example, If the data set has columns named Weight and Attribute the operator should create the weights file. ;D
-Gagi
that is true indeed. Please add a feature request to the bugtracker.
But your process is cool, would you share it on myExperiment using the Community Extension?
Greetings,
Sebastian
I have a table of attribute names and corresponding weights independently computed from R script.
I need to convert this Example Set into a weights type.
The method described above works for me - Thank you, Gagi!!!
but it would be nice for "Data to Weight" operator to be able to handle this situation directly.
Thank you!
best,
RLynx
I have also come to this page for converting data to weight vector. After reading the proposed solution I tried to automate the process. Until RapidMiner staff will add this functionality, the following silly but working code can be used.
hello @suleymansahal -
Thank you for this. After much conversation internally we agree that this would be a nice improvement to "Data to Weights". Thanks.
Scott
Does not using the Set Role operator to assign the attribute column to a weight role not do the job or am I not understanding the problem correctly?
It occurs to me that this question initially started in 2010. 7 years later, you mention you internally decided this would be a nice improvement. Now, another year later, the "Data to Weights" still has not been improved in this way.
So now I'm running into this issue as well and still need to use the "silly but working" workaround.
I'm new at Rapid Miner. The great thing about the tool is that there is quite some knowledge on the internet. However, it also occurs to me that there are a lot of very old posts (2010, 2012, 2017) where people mention improvements or limitations that still are not available in the currently latest version.
Is Rapid Miner actually being maintained?
Thanks,
Arjan
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Dortmund, Germany
SO at the end of the day, you see from @mschmitz that the ExampleSet to Weights operator in the Operator Toolbox does this quite nicely now.
Happy RapidMining!
Scott
I assume you mean assign the "weight" special attribute to an attribute, right?
If I do that, my examples are not accepted as a object-"weight-input".
I'm going to look into the solution @mschmitz provided....
Thanks for your answer, the ExampleSet to Weights from the Converters Extension does exactly what this thread is about and what I was looking for. I just did not find it myself.....
I do understand @sgenzer, that it's pretty impossible to keep all threads fully updated. At least this one is updated now.....
Having said this.... just thinking out loud.... I bet there could be a way to use Text Analytics to extract all issues mentioned in threads and their solution. Then use BI to mix that with your version information and/or backlog. From there it might be possible to create some automatically generated overview of issues raised, questions asked and the most current solution.....?
Seems like an interesting challenge with pretty powerful results.....?
If you (or anyone else) is interested in using this community as a text mining project for these kind of ideas, I am more than happy to give you the data set to play with. Just let me know.
Scott