"Weighted Examples do not work out?"

xxhasan88xxxxhasan88xx MemberPosts:4Contributor I
edited June 2019 inHelp
Hi everyone,
i have a problem with class unbalanced data and example weighting. I have a dataset with 184 positive examples and 2200 negative ones. I know that there exist some solutions for that (e.g. sampling, weight attribute generation, cost-sensitive learning etc.).

I generate an attribut "weight" with the operator "Generate Weight (Stratification)" which assigns weights to all examples. However, this does not change anything in my results! My decision tree is the same as before. This problem exists also for Rule-Learners. Furthermore, this problem also exists if I generate a weight attribute manually (with functional expressions).

However, if i take a decision tree from the Weka-Extension (e.g. W-J48), it works and the tree seems to apply the example weights.

Now my question is, why doesn't the rapidminer decision tree seem to handle the example weights? What am I doing wrong? Whatever weights I generate, they do not work.

Thank you in advance.

Here you can see my process.



<运营商激活= " true "类=“检索”兼容ibility="5.3.015" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">








<参数键= " maximal_depth" value="5"/>












Tagged:

Answers

  • frasfras MemberPosts:93Contributor II
    The weight attributes have a special role. This is the reason why the rapidminer tree ignores them.
    Use operator "Set Role" to change the role to "regular".
  • xxhasan88xxxxhasan88xx MemberPosts:4Contributor I

    Thanks but unfortunately this is not the solution because

    1) I want the weight attribute to be the weight (and not to be a regular attribute):)
    The Rapidminer operators just don't apply the weights.

    2) the "Generate Weight (Stratification)" Operator automatically sets the role to "weight" and this is what i need.

    3) Nevertheless if I use "set Role" to "weight", the problem still exists :-\
  • xxhasan88xxxxhasan88xx MemberPosts:4Contributor I
    Has nobody a solution?

    Can at least anybody confirm that he/she has successfully used weighted examples with Rapidminer Operators?
  • mafern76mafern76 MemberPosts:45Contributor II
    Are you sure?

    For me, Decision Tree (Parallel) seems to be using weights.

    Why did you set total weight at 10000? Could this be causing something? I just left it at 1.
  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,404RM Data Scientist
    i frequently use weights. At least in 6.X there is no problem i know of.

    Cheers
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign InorRegisterto comment.