Review 2

General Questions

    No. classes |  Symbolic  | Numerics |
    ------------|------------|----------|--
    0           |            |          |
    ------------|------------|----------|--
    > 1         |            |          |
    ------------|------------|----------|--
    = 1         |            |          |
    ------------|------------|----------|--
        @relation weather

        @attribute outlook {sunny, overcast, rainy}
        @attribute temperature real
        @attribute humidity real
        @attribute windy {TRUE, FALSE}
        @attribute play {yes, no}

        @data
        sunny,85,85,FALSE,no
        sunny,80,90,TRUE,no
        overcast,83,86,FALSE,yes
        rainy,70,96,FALSE,yes
        rainy,68,80,FALSE,yes
        rainy,65,70,TRUE,no
        overcast,64,65,TRUE,yes
        sunny,72,95,FALSE,no
        sunny,69,70,FALSE,yes
        rainy,75,80,FALSE,yes
        sunny,75,70,TRUE,yes
        overcast,72,90,TRUE,yes
        overcast,81,75,FALSE,yes
        rainy,71,91,TRUE,no

Using the above example, answer the following questions:

    outlook = sunny
    |   humidity = high: no
    |   humidity = normal: yes
    outlook = overcast: yes
    outlook = rainy
    |   windy = TRUE: no
    |   windy = FALSE: yes

Python Stuff


    with open(f, 'w') as fname:
        "do some thing"
        "do some more things"

        re.sub(r'([ \n\r\t]|#.* )', "", a_text_string)


        [a[i] for i, user in enumerate(users) if user==True]