8c17debc9dc6552da8c317c0c852b55f03c80c61,slm_lab/experiment/control.py,Session,run_episode,#Session#,45

Before Change


            // if bool(done_space):
            if done_space.get(a=0)[0]:
                // TODO refactor: set all to terminate on master termination. Also use the env with longest timestep to prevent being terminated by fast-running env
                for a, _eb in enumerate(self.aeb_space.a_eb_proj):
                    done_proj_a = done_space.get(a=a)
                    // TODO still need to standardize all data proj to aeb
                    for a_idx, _done in enumerate(done_proj_a):
                        done_proj_a[a_idx] = True
                break
        // TODO monitor record all data spaces, including body with body.clock. cuz all data spaces have history
        // split per body, use done as delim (maybe done need body clock now), split, sum each chunk
        mean_loss = np.nanmean(loss_list)

After Change


            // TODO hack for a reliable done, otherwise all needs to be coincidental
            if done_space.get(a=0)[(0, 0)]:
                // TODO make all run independently with relative speed
                done_space.data.fill(1)
                break
        // TODO monitor record all data spaces, including body with body.clock. cuz all data spaces have history
        // split per body, use done as delim (maybe done need body clock now), split, sum each chunk
        mean_loss = np.nanmean(loss_list)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kengz/SLM-Lab
Commit Name: 8c17debc9dc6552da8c317c0c852b55f03c80c61
Time: 2017-12-24
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/control.py
Class Name: Session
Method Name: run_episode


Project Name: dmlc/gluon-cv
Commit Name: 5bc2c075733e672a9a7c5e14bc474788f88e90de
Time: 2019-12-06
Author: jerryzh.cn@gmail.com
File Name: gluoncv/utils/viz/mask.py
Class Name:
Method Name: expand_mask


Project Name: scipy/scipy
Commit Name: 2344e4105a44fa929aa6fb82597c2ac81bef5171
Time: 2014-02-21
Author: pav@iki.fi
File Name: scipy/sparse/linalg/dsolve/linsolve.py
Class Name:
Method Name: spsolve