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"]
docstr: Gives dict-like access to Params instance by params.dict['learning_rate']
docstr_tok: ["Gives","dict-like","access","to","Params","instance","by","params.dict","[","'learning_rate","'","]"]
code: def dict(self):
      """Gives dict-like access to Params instance by params.dict['learning_rate']"""
      return self.__dict__
  
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 4 for calling the Params obj's underlying member method code with example usage: obj.dict() and returns: self