def active_net_list(self):
    net_list = [['input', 0, 0]]
    active_cnt = np.arange(((self.net_info.input_num + self.net_info.node_num) + self.net_info.out_num))
    active_cnt[self.net_info.input_num:] = np.cumsum(self.is_active)
    for (n, is_a) in enumerate(self.is_active):
        if is_a:
            t = self.gene[n][0]
            if (n < self.net_info.node_num):
                type_str = self.net_info.func_type[t]
            else:
                type_str = self.net_info.out_type[t]
            connections = [active_cnt[self.gene[n][(i + 1)]] for i in range(self.net_info.max_in_num)]
            net_list.append(([type_str] + connections))
    return net_list
def active_net_list(self):
    net_list = [['input', 0, 0]]
    active_cnt = np.arange(((self.net_info.input_num + self.net_info.node_num) + self.net_info.out_num))
    active_cnt[self.net_info.input_num:] = np.cumsum(self.is_active)
    for (n, is_a) in enumerate(self.is_active):
        if is_a:
            t = self.gene[n][0]
            if (n < self.net_info.node_num):
                type_str = self.net_info.func_type[t]
            else:
                type_str = self.net_info.out_type[t]
            connections = [active_cnt[self.gene[n][(i + 1)]] for i in range(self.net_info.max_in_num)]
            net_list.append(([type_str] + connections))
    return net_list