|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Progressable 的软件包 | |
|---|---|
| ml.shifu.guagua | This package contains some common classes for both master and worker. |
| ml.shifu.guagua.master | This package contains guagua master implementation. |
| ml.shifu.guagua.worker | This package contains guagua worker implementation. |
| ml.shifu.guagua 中 Progressable 的使用 |
|---|
| 参数类型为 Progressable 的 ml.shifu.guagua 中的方法 | |
|---|---|
void |
GuaguaService.run(Progressable progress)
Real logic implementation, for example, master and worker iteration logic. |
| ml.shifu.guagua.master 中 Progressable 的使用 |
|---|
| 参数类型为 Progressable 的 ml.shifu.guagua.master 中的方法 | |
|---|---|
protected MASTER_RESULT |
GuaguaMasterService.iterate(MasterContext<MASTER_RESULT,WORKER_RESULT> context,
int iteration,
Progressable progress)
Call each iteration computation and preIteration, postIteration in interceptors. |
void |
GuaguaMasterService.run(Progressable progress)
Iterate MasterComputable.compute(MasterContext), and set hook point before and after each iteration. |
| ml.shifu.guagua.worker 中 Progressable 的使用 |
|---|
| 参数类型为 Progressable 的 ml.shifu.guagua.worker 中的方法 | |
|---|---|
protected WORKER_RESULT |
GuaguaWorkerService.iterate(WorkerContext<MASTER_RESULT,WORKER_RESULT> context,
int initialIteration,
Progressable progress)
Call each iteration computation and preIteration, postIteration in interceptors. |
void |
GuaguaWorkerService.run(Progressable progress)
Iterate WorkerComputable.compute(WorkerContext), and set hook point before and after each iteration. |
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||