Esempio n. 1
0
 def add(self, exps: BatchExperiences) -> NoReturn:
     '''
     change [s, s],[a, a],[r, r] to [s, a, r],[s, a, r] and store every item in it.
     '''
     for exp in NamedTupleStaticClass.unpack(exps):
         self._store_op(exp)
Esempio n. 2
0
 def add(self, exps: BatchExperiences) -> NoReturn:
     for i, data in enumerate(NamedTupleStaticClass.unpack(exps)):
         self._per_store(i, data)
Esempio n. 3
0
 def add(self, exps: BatchExperiences) -> NoReturn:
     '''
     change [s, s],[a, a],[r, r] to [s, a, r],[s, a, r] and store every item in it.
     '''
     for i, data in enumerate(NamedTupleStaticClass.unpack(exps)):
         self._per_store(i, data)
Esempio n. 4
0
 def add(self, exps: BatchExperiences) -> NoReturn:
     '''
     input: [ss, visual_ss, as, rs, s_s, visual_s_s, dones]
     '''
     self.add_batch(list(NamedTupleStaticClass.unpack(exps)))