orange / docs / extend-widgets / rst / progressbar.rst

Diff from to

docs/extend-widgets/rst/progressbar.rst

 slower than split second, should report on the progress of their
 computation. For that purpose orange widgets use progress bar
 functions, to which they report progress in terms of per-cent
-completion of the task. The progress is then either reported above the
-icon of the widget in Orange Canvas.
+completion of the task. The progress is then either on the icon
+of the widget in Orange Canvas
 
-.. image:: progressbar-canvas.png
+.. image:: learningcurve.png
 
 or in the title bar of the widget's window. There, Orange also
 reports on the estimated time of completion of the task:
 
-.. image:: progressbar-widget.png
+.. image:: learningcurve-output.png
 
-Class :obj:`OWWidget`, the mother class of all
-widgets, has for this purpose a set of functions, which include:
+:class:`OWWidget` has for this purpose a set of functions, which include:
 
 .. method:: progressBarInit()
 
 
 .. method:: progressBarFinished()
 
-
 where value is any number between 0 and 100. Sometimes, like it is
 the case for our widgets, we know about the number of iterations involved in
 computation, and we would only like to advance the progress bar for
 some constant at the end of the iteration. For this, we use
-:obj:`ProgressBar` class in :obj:`OWGUI`, and the code in
+:class:`ProgressBar` class in :mod:`OWGUI`, and the code in
 the learning curve widget described in the previous lesson that does
 it is as follows::
 
     def getLearningCurve(self, learners):
-        pb = OWGUI.ProgressBar(self, iterations=self.steps*self.folds)
-        curve = orngTest.learningCurveN(learners, self.data,
-            folds=self.folds, proportions=self.curvePoints, callback=pb.advance)
+        pb = OWGUI.ProgressBar(self, iterations=self.steps * self.folds)
+        curve = Orange.evaluation.testing.learning_curve_n(
+            learners, self.data, folds=self.folds,
+            proportions=self.curvePoints, callback=pb.advance)
         pb.finish()
         return curve
 
-:obj:`ProgressBar` class removes the need to define any
-special function to compute the percent of the task done and set the
-progress bar, and instead uses :obj:`ProgressBar`'s method
-:obj:`advance` for this purpose.
+:class:`ProgressBar` class removes the need to define any special
+function to compute the percent of the task done and set the
+progress bar, and instead uses :class:`ProgressBar`'s method
+:func:`advance` for this purpose.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.