d670e94d3f8e938858e938b1d3efeac5389a26d3,slm_lab/experiment/control.py,Session,run_episode,#Session#,45

Before Change


                break
        logger.info(f"epi {self.aeb_space.clock["e"]}, total_rewards {total_rewards}")
        // TODO compose episode data properly with monitor
        episode_data = pd.DataFrame(
            episode_data_list, columns=["rewards", "total_rewards", "loss", "explore_var"])
        // episode_data = {}
        return episode_data

    def run(self):

After 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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kengz/SLM-Lab
Commit Name: d670e94d3f8e938858e938b1d3efeac5389a26d3
Time: 2017-12-17
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/experiment/control.py
Class Name: Session
Method Name: run_episode


Project Name: datascienceinc/Skater
Commit Name: 26bb049b3d843811b2f1c46bb3e7d579a2f07f91
Time: 2017-04-25
Author: aikramer2@gmail.com
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name:
Method Name: _compute_pd


Project Name: googledatalab/pydatalab
Commit Name: 7a5f3c1751bc31f0bd5406bab04845461dd8c88a
Time: 2017-08-08
Author: qimingj@users.noreply.github.com
File Name: google/datalab/ml/_summary.py
Class Name: Summary
Method Name: get_events