def update_channels(self, channel_list, start=-1, end=-1, step=1):
        assert((start == -1 and end == -1) or end > start)

        if start == -1:
            start = 0
            if len(self.channels.keys()) > 0:
                channel_name = list(self.channels.keys())[0]
                start = len(self.channels[channel_name].epoch_record)

        self.req_sock.send_pyobj(ChannelsRequest(
            channel_list, start=start, end=end, step=step
        ))

        rsp_msg = self.req_sock.recv_pyobj()

        if isinstance(rsp_msg.data, Exception):
            raise rsp_msg.data

        for channel in rsp_msg.data.keys():
            rsp_chan = rsp_msg.data[channel]

            if isinstance(rsp_chan, Exception):
                raise rsp_chan

            if channel not in self.channels.keys():
                self.channels[channel] = rsp_chan
            else:
                chan = self.channels[channel]
                chan.batch_record += rsp_chan.batch_record
                chan.epoch_record += rsp_chan.epoch_record
                chan.example_record += rsp_chan.example_record
                chan.time_record += rsp_chan.time_record
                chan.val_record += rsp_chan.val_record
One-hot representation of integer vector.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/train_extensions/live_monitoring.py/LiveMonitor.update_channels--crossover with--dataset/ETHPy150Open Lasagne/Lasagne/lasagne/utils.py/one_hot