Hparams

the hyperparams class for Knowledge Editing

HyperParams

Simple wrapper to store hyperparameters for Python-based rewriting methods.

from_json() -> HyperParams

Static method, hyperparams can be initialized through json

def from_json(cls, fpath: str):
  • Paramters

    • fpath(Str): config path for editing

  • Return Type

    • hparams(Hyperparams): The hyperparams class for editing

from_hparams() -> HyperParams

Static method, hyperparams can be initialized through yaml

def from_hparams(cls, hparams_name_or_path: str):
  • Paramters

    • hparams_name_or_path(Str): yaml config path for editing

  • Return Type

    • hparams(Hyperparams): The hyperparams class for editing

Example

  • content

Last updated