def learn(self, s, p_actions, a, r, ns, np_actions, na, terminal):
        super(LSPI, self).learn(s, p_actions, a, r, ns, np_actions, na, terminal)
        if (self.samples_count) % self.steps_between_LSPI == 0:
            self.representationExpansionLSPI()
Iterative learning method for the agent.
dataset/ETHPy150Open rlpy/rlpy/rlpy/Agents/LSPI.py/LSPI.learn