![]() |
SG++-Doxygen-Documentation
|
This class processes the information about the current state of the learning process and presents it in form of a graph. More...
Public Member Functions | |
| def | __init__ (self, learnerFilename="learner_progress.eps", solverFilename="solver_progress.eps") |
| Constuctor. More... | |
| def | handleLearningEvent (self, subject, status) |
| Handles events from Learner. More... | |
| def | handleSolvingEvent (self, subject, status) |
| Handles events from Linear Solver. More... | |
Static Public Attributes | |
| int | LEARNER_FIGURE = 1 |
| The constant figure ID of the plot with learner information. More... | |
| int | SOLVER_FIGURE = 2 |
| The constant figure ID of the plot with solver information. More... | |
This class processes the information about the current state of the learning process and presents it in form of a graph.
In order to use this class the matplotlib library is required.
| def python.controller.InfoToGraph.InfoToGraph.__init__ | ( | self, | |
learnerFilename = "learner_progress.eps", |
|||
solverFilename = "solver_progress.eps" |
|||
| ) |
Constuctor.
| learnerFilename | file name where learner progress information has to be stored (eps file) |
| solverFilename | file name where solver progress information has to be stored (eps file) |
References python.controller.InfoToGraph.InfoToGraph.__learnerFigure, python.controller.InfoToGraph.InfoToGraph.__learnerFilename, python.controller.InfoToGraph.InfoToGraph.__learnerTestResiduum, python.controller.InfoToGraph.InfoToGraph.__learnerTrainResiduum, python.controller.InfoToGraph.InfoToGraph.__solverFigure, python.controller.InfoToGraph.InfoToGraph.__solverFilename, python.controller.InfoToGraph.InfoToGraph.__solverResiduum, python.controller.InfoToGraph.InfoToGraph.LEARNER_FIGURE, and python.controller.InfoToGraph.InfoToGraph.SOLVER_FIGURE.
| def python.controller.InfoToGraph.InfoToGraph.handleLearningEvent | ( | self, | |
| subject, | |||
| status | |||
| ) |
Handles events from Learner.
| subject | Learner object |
| status | Event Status of type LearnerEvents |
References python.controller.InfoToGraph.InfoToGraph.__learnerFilename, python.controller.InfoToGraph.InfoToGraph.__learnerGridSize, python.controller.InfoToGraph.InfoToGraph.__learnerTestResiduum, python.controller.InfoToGraph.InfoToGraph.__learnerTrainResiduum, and python.controller.InfoToGraph.InfoToGraph.LEARNER_FIGURE.
| def python.controller.InfoToGraph.InfoToGraph.handleSolvingEvent | ( | self, | |
| subject, | |||
| status | |||
| ) |
Handles events from Linear Solver.
| subject | Linear Solver object |
| status | Event Status of type LinearSolverEvents |
References python.controller.InfoToGraph.InfoToGraph.__solverFilename, python.controller.InfoToGraph.InfoToGraph.__solverResiduum, and python.controller.InfoToGraph.InfoToGraph.SOLVER_FIGURE.
|
static |
The constant figure ID of the plot with learner information.
Referenced by python.controller.InfoToGraph.InfoToGraph.__init__(), and python.controller.InfoToGraph.InfoToGraph.handleLearningEvent().
|
static |
The constant figure ID of the plot with solver information.
Referenced by python.controller.InfoToGraph.InfoToGraph.__init__(), and python.controller.InfoToGraph.InfoToGraph.handleSolvingEvent().