wiki:Orange25/DevelopmentGuidelines

Version 1 (modified by marko, 2 years ago) (diff)

Models to string

Output of learning models. Learning models (classifiers, regressors) need to have str defined. For example

data = Orange.data.Table("titanic")
c = Orange.classification.tree.TreeLearner(data)
print c #prints out the model
print c.format(max_depth=1) #with some special formatting