Link to home
Start Free TrialLog in
Avatar of chudyksg
chudyksgFlag for United Kingdom of Great Britain and Northern Ireland

asked on

weka nnge algorithm problem

I try to use NNGE algorithm.
When I input this data (one column per day, and range of hours 0-4 for testing just now)

@relation pattern
@attribute hour real

@attribute class {open,closed}

@data
0,closed
1,closed
2,closed
3,closed
4,closed

0,closed
1,closed
2,closed
3,closed
4,closed

I get the correct result class closed IF : 0.0<=hour<=4.0  (10)

If I input this data:

@relation pattern
@attribute hour real

@attribute class {open,closed}

@data
0,closed
1,closed
2,closed
3,closed
4,closed

0,closed
1,open
2,closed
3,closed
4,closed

I get the correct results as well

class closed IF : 2.0<=hour<=4.0  (6)
      class open IF : hour=1.0  (1)
      class closed IF : hour=0.0  (2)

But when I input this data

@relation pattern
@attribute hour real

@attribute class {open,closed}

@data
0,closed
1,open
2,closed
3,closed
4,closed

0,closed
1,closed
2,closed
3,closed
4,closed

Weka doesn't pick up the open time in day 1 it only picks up open days from the very last day.

class closed IF : 2.0<=hour<=4.0  (6)
      class closed IF : 0.0<=hour<=1.0  (3)

Why is this happening? I the layout of the data is wrong but how to sort it out.
ASKER CERTIFIED SOLUTION
Avatar of mtgradwell
mtgradwell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial