Defining weekday and weekend in WEKA dataset? -
this small part of dataset:
@relation @attribute id {'1','2','3','4','5'} @attribute is_weekend {saturday, sunday} @attribute weekday {monday, tuesday, wednesday, thursday, friday} @attribute leaving_time {'07:00<=x<09:00','09:00<=x<12:30'} @data '1',??,,'09:00<=x<12:30' '2',??,'09:00<=x<12:30' '3',??,'07:00<=x<09:00' '4',??,'09:00<=x<12:30' '5',??,'09:00<=x<12:30'
how can define weekday , weekend in data part!?
i'm not quite sure you're trying do, because attribute definitions bit confusing. shouldn't is_weekend
have values yes
, no
? because now, each data point needs weekend day , weekday.
assuming how want them, set attribute not fit missing:
@data '1',?,'monday','09:00<=x<12:30' '2',?,'thursday','09:00<=x<12:30' '3','saturday',?,'07:00<=x<09:00' '4',?,'monday','09:00<=x<12:30' '5','sunday',?,'09:00<=x<12:30'
i'd rather this:
@relation @attribute id {'1','2','3','4','5'} @attribute is_weekend {yes, no} @attribute weekday {monday, tuesday, wednesday, thursday, friday, saturday, sunday} @attribute leaving_time {'07:00<=x<09:00','09:00<=x<12:30'} @data '1','no','monday','09:00<=x<12:30' '2','no','thursday','09:00<=x<12:30' '3','yes','saturday','07:00<=x<09:00' '4','no','monday','09:00<=x<12:30' '5','yes','sunday','09:00<=x<12:30'
Comments
Post a Comment