MCPcopy Create free account
hub / github.com/THUDM/P-tuning / save_examples

Method save_examples

PT-Fewshot/pet/utils.py:106–109  ·  view source on GitHub ↗

Save a set of input examples to a file

(examples: List['InputExample'], path: str)

Source from the content-addressed store, hash-verified

104
105 @staticmethod
106 def save_examples(examples: List['InputExample'], path: str) -> None:
107 """Save a set of input examples to a file"""
108 with open(path, 'wb') as fh:
109 pickle.dump(examples, fh)
110
111
112class InputFeatures(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected