Pages: [1]
  Print  
Author Topic: Tertius problem  (Read 2154 times)
edfred
Newbie
*
Posts: 8


« on: January 08, 2009, 10:51:45 PM »

Hi,

can comebody here give me an example operatorchain for the W-Tertius Algorithm to generate associationrules?

I have tried the following:
Code:
<operator name="Root" class="Process" expanded="yes">
    <operator name="TextInput" class="TextInput" expanded="yes">
        <list key="texts">
          <parameter key="test" value="/Users/guest/Documents/tertius/test"/>
        </list>
        <parameter key="vector_creation" value="BinaryOccurrences"/>
        <operator name="StringTokenizer" class="StringTokenizer">
        </operator>
        <operator name="GermanStopwordFilter" class="GermanStopwordFilter">
        </operator>
        <operator name="ToLowerCaseConverter" class="ToLowerCaseConverter">
        </operator>
        <operator name="TokenLengthFilter" class="TokenLengthFilter">
            <parameter key="min_chars" value="3"/>
        </operator>
    </operator>
    <operator name="Numerical2Binominal" class="Numerical2Binominal">
    </operator>
    <operator name="W-Tertius" class="W-Tertius">
    </operator>
</operator>

...but it isn't working... Sad

Best regards
edfred

Logged
Sebastian Land
Administrator
Hero Member
*****
Posts: 2426


« Reply #1 on: January 12, 2009, 09:17:36 AM »

Hi Edfred,
I'm not familiar with this implementation, since it's a WEKA learner. Did you try to use FP-Growth?

Just to be curious: Why do you generate Association Rules over Text Data?

Greetings,
  Sebastian
Logged
edfred
Newbie
*
Posts: 8


« Reply #2 on: January 12, 2009, 11:24:41 PM »

Hi,
and thx for ur responds. I have html-sites as input. I convert the Textinput from numerical to binominal data.
I have done the same data with the Apriori-algorithm and it worked. Only the Tertius-algorithm doesn't work.
I have to solve the problem with the Tertius-algorithm. I know that I can use other algorithms, but for my task it isn't allowed.

Thanks anyway
Edfred
Logged
edfred
Newbie
*
Posts: 8


« Reply #3 on: January 20, 2009, 12:55:21 PM »

Hi,

can somebody explain me this exception, please:

Error in: W-Tertius (W-Tertius) W-Tertius caused an error: weka.core.UnsupportedAttributeTypeException: weka.associations.Tertius: Cannot handle unary class!
An external program or library has reported an error. Please see the documentation of this program or library for further information

This is my operator-chain now:

Code:
<operator name="Root" class="Process" expanded="yes">
    <operator name="ExampleSource" class="ExampleSource">
        <parameter key="attributes" value="../Test.aml"/>
    </operator>
    <operator name="AbsoluteSampling" class="AbsoluteSampling">
    </operator>
    <operator name="AttributeFilter" class="AttributeFilter">
        <parameter key="condition_class" value="is_numerical"/>
    </operator>
    <operator name="Numerical2Binominal" class="Numerical2Binominal">
    </operator>
    <operator name="W-Tertius" class="W-Tertius">
    </operator>
</operator>

Best regards

Edfred
Logged
edfred
Newbie
*
Posts: 8


« Reply #4 on: February 11, 2009, 10:34:53 AM »

Hi at all,

I have found the problem. You can avoid the Exception with an operator called 'RemoveUselessAttributes'. If you add this operator to your operator tree, the Tertius-algorithm will finish without exceptions and generate association rules.

Thanks, to all peple who tried to help me.

Best regards,
Edfred
Logged
Sebastian Land
Administrator
Hero Member
*****
Posts: 2426


« Reply #5 on: February 17, 2009, 11:03:04 PM »

Hi Edfred,
thank you for posting this solution. I will try to remember if another user comes up with this problem.

Greetings,
  Sebastian
Logged
Pages: [1]
  Print  
 
Jump to: