src/seals/base_envs.py
def feature_matrix(self):
        """Matrix mapping states to feature vectors."""
        # Construct lazily to save memory in algorithms that don't need features.
        if self._feature_matrix is None:
            n_states = self.state_space.n
            self._feature_matrix = np.eye(n_states)
        return self._feature_matrix
Matrix mapping states to feature vectors.
Matrix mapping states to feature vectors.
Matrix mapping states to feature vectors .
def feature_matrix(self):
        if self._feature_matrix is None:
            n_states = self.state_space.n
            self._feature_matrix = np.eye(n_states)
        return self._feature_matrix
def feature_matrix ( self ) : if self . _feature_matrix is None : n_states = self . state_space . n self . _feature_matrix = np . eye ( n_states ) return self . _feature_matrix
Matrix mapping states to feature vectors.
Matrix mapping states to feature vectors .
"""Matrix mapping states to feature vectors.""" # Construct lazily to save memory in algorithms that don't need features.
self