Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 595 Bytes

usage.md

File metadata and controls

18 lines (16 loc) · 595 Bytes

Usage Examples

  • Basic example:
from probing.pipeline import ProbingPipeline

experiment = ProbingPipeline(
        hf_model_name="bert-base-uncased",
        device="cuda:0",
        metric_names=["f1", "accuracy"],
        encoding_batch_size=32,
        classifier_batch_size=32)

experiment.run(probe_task=Path("example.csv").stem,
               path_to_task_file="example.csv",
               verbose=True,
               train_epochs=20,)