|Version 4 (modified by anze, 2 years ago) (diff)|
Output of models
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.to_string(max_depth=1) #with some special formatting
Add plot methods to classifiers. The most typical one should be plot(), but if there are multiple different plots, prefix them with plot_, for example plot_dendrogram.
TODO: what should be default output?
Data set naming
In documentation, do not use table. Name of the data set is preferred (but just data is also acceptable), so write:
iris = Orange.data.Table("iris")
In code, use data.
Import just Orange and use full paths. Avoid exceptions. Never import *.