mriapp.process package¶
mriapp.process.BaseProcess module¶
-
class
mriapp.process.BaseProcess.
BaseProcess
(directive_params, config, action_handler)¶ Bases:
object
Base class for processes like Caffe solvers
Parameters: - directive_params (dict) – Dictionary from the JSON directive parameters
- config (dict) – Dictionary of configuration options
- action_handler (Queue) – Thread-safe queue that transfers events across threads
-
alive
¶ Returns true if the process is currently running
Returns: running – True if process is still running Return type: boolean
-
test
()¶ Currently unused
-
train
()¶
mriapp.process.CaffeProcess module¶
-
class
mriapp.process.CaffeProcess.
CaffeProcess
(directive_params, config, action_handler)¶ Bases:
mriapp.process.BaseProcess.BaseProcess
Class for running Caffe
Parameters: - directive_params (dict) – Dictionary from the JSON directive parameters
- config (dict) – Dictionary of configuration options
- action_handler (Queue) – Thread-safe queue that transfers events across threads
-
alive
¶ Returns true if the process is currently running
Returns: running – True if process is still running Return type: boolean
-
test
()¶ Currently unused
-
train
()¶ Start solver, we’ll context switch to the caffe_root directory because Caffe has issues not being the center of the universe.
mriapp.process.DummyProcess module¶
-
class
mriapp.process.DummyProcess.
DummyProcess
(directive_params, config, action_handler)¶ Bases:
object
Dummy process for unit testing
Parameters: - directive_params (dict) – Dictionary from the JSON directive parameters
- config (dict) – Dictionary of configuration options
- action_handler (Queue) – Thread-safe queue that transfers events across threads
-
alive
¶ Live for a certain number of iterations
-
test
()¶ Unused
-
train
()¶ Unused