We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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!
The text was updated successfully, but these errors were encountered:
Don't know whether .append() will work, but if atts[-1] is class, you want to construct your domain like so:
.append()
atts[-1]
domain = Orange.data.Domain([Orange.feature.Continuous(x) for x in atts[:-1]], [Orange.feature.Discrete(atts[-1])])
Sorry, something went wrong.
And if you're actually working with the current Orange 3 version, its repository is here: https://github.com/biolab/orange3
You need to pass a list of values the discrete variable can represent. i.e. Orange.feature.Discrete("Name", values=["First", "Second", "Third"])
Orange.feature.Discrete("Name", values=["First", "Second", "Third"])
No branches or pull requests
I am dealing with continuous features and discrete class_var, i.e.
However, it said "value index 0 out of range (0 - -1) at attribute no 4 (d)". Please help!
The text was updated successfully, but these errors were encountered: