class_docstr: Class that loads hyperparameters from a json file.
  Example:
  params = Params(json_path)
  print(params.learning_rate)
  params.learning_rate = 0.5  # change the value of learning_rate in params
class_docstr_tok: ["Class","that","loads","hyperparameters","from","a","json","file",".","Example",":","params","=","Params","(","json_path",")","print","(","params.learning_rate",")","params.learning_rate","=","0.5","#","change","the","value","of","learning_rate","in","params"]
code: def __init__(self, json_path: str = None):
      if json_path is not None:
          with open(json_path) as f:
              params = json.load(f)
              self.__dict__.update(params)
  
imports: import json
  import pickle
  import random
  import torch
  import numpy
  import pandas
  from tqdm.auto import tqdm
  from typing import Iterator
  from gluonts.dataset.common import DataEntry, Dataset, ListDataset
label_desc: Use image node_id 1 to create a new Params object  with example: obj = Params(json_path)