Skip to content

value index 0 out of range (0 - -1) at attribute no 4 (d) #54

@ziqilau

Description

@ziqilau

I am dealing with continuous features and discrete class_var, i.e.

atts = ['a','b','c','d']
domain = Orange.data.Domain([Orange.feature.Continuous(x) for x in atts[:-1]] +
                            [Orange.feature.Discrete(atts[-1])])
data = Orange.data.Table(domain)
data.append([1,2,3,0])

However, it said "value index 0 out of range (0 - -1) at attribute no 4 (d)". Please help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions