from Orange.widgets.data.owdiscretize import OWDiscretize from Orange.widgets.model.owrandomforest import OWRandomForest iris = Table("iris") app = QApplication(sys.argv) main = OWReport.get_instance() file = OWFile() file.create_report_html() main.make_report(file) table = OWDataTable() table.set_dataset(iris) table.create_report_html() main.make_report(table) main = OWReport.get_instance() disc = OWDiscretize() disc.create_report_html() main.make_report(disc) learner = OWRandomForest() learner.create_report_html() main.make_report(learner) main.show() main.saveSettings() assert main.table_model.rowCount() == 4 sys.exit(app.exec_())
from Orange.data import Table from Orange.widgets.model.owrandomforest import OWRandomForest if __name__ == "__main__": import sys from AnyQt.QtWidgets import QApplication a = QApplication(sys.argv) ow = OWRandomForest() d = Table('iris') ow.set_data(d) ow.show() a.exec_() ow.saveSettings()