MCPcopy Index your code
hub / github.com/thunlp/OpenPrompt / 1.3_calibration.py

File 1.3_calibration.py

tutorial/1.3_calibration.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# In this scripts, you will laern how to do calibartion and zero-shot learning
2# We use manual verbalizer and knowledgeable verbalizer as examples.
3from tqdm import tqdm
4from openprompt.data_utils.text_classification_dataset import AgnewsProcessor

Callers

nothing calls this directly

Calls 13

AgnewsProcessorClass · 0.90
load_plmFunction · 0.90
ManualTemplateClass · 0.90
FewShotSamplerClass · 0.90
PromptDataLoaderClass · 0.90
calibrateFunction · 0.90
cudaMethod · 0.80
get_train_examplesMethod · 0.45
get_test_examplesMethod · 0.45
from_fileMethod · 0.45

Tested by

no test coverage detected