docstr: Initializes portfolio vector memory.
  
  Args:
    capacity: Max capacity of memory.
    portfolio_size: Portfolio size.
docstr_tok: ["Initializes","portfolio","vector","memory",".","Args",":","capacity",":","Max","capacity","of","memory",".","portfolio_size",":","Portfolio","size","."]
code: def __init__(self, capacity, portfolio_size):
      """Initializes portfolio vector memory.
  
      Args:
        capacity: Max capacity of memory.
        portfolio_size: Portfolio size.
      """
      # initially, memory will have the same actions
      self.capacity = capacity
      self.portfolio_size = portfolio_size
      self.reset()
  
file_path: FinRL/finrl/agents/portfolio_optimization/utils.py
imports: from __future__ import annotations
  from collections import deque
  import numpy
  from torch.utils.data.dataset import IterableDataset
label_desc: Use image node_id 1 to create a new PVM object  with example: obj = PVM(capacity, portfolio_size)