kazu.training.config¶
Classes
PredictionConfig(path: pathlib.Path, batch_size: int, stride: int, max_sequence_length: int, device: str, architecture: str = 'bert', use_multilabel: bool = True) |
|
TrainingConfig(hf_name: str, test_path: pathlib.Path, train_path: pathlib.Path, training_data_cache_dir: pathlib.Path, test_data_cache_dir: pathlib.Path, working_dir: pathlib.Path, max_length: int, use_cache: bool, max_docs: Optional[int], stride: int, batch_size: int, lr: float, evaluate_at_step_interval: int, num_epochs: int, lr_scheduler_warmup_prop: float, test_overfit: bool, device: str, workers: int, architecture: str = 'bert', epoch_completion_fraction_before_evals: float = 0.75, seed: int = 42) |
- class kazu.training.config.PredictionConfig[source]¶
Bases:
object
PredictionConfig(path: pathlib.Path, batch_size: int, stride: int, max_sequence_length: int, device: str, architecture: str = ‘bert’, use_multilabel: bool = True)
- class kazu.training.config.TrainingConfig[source]¶
Bases:
object
TrainingConfig(hf_name: str, test_path: pathlib.Path, train_path: pathlib.Path, training_data_cache_dir: pathlib.Path, test_data_cache_dir: pathlib.Path, working_dir: pathlib.Path, max_length: int, use_cache: bool, max_docs: Optional[int], stride: int, batch_size: int, lr: float, evaluate_at_step_interval: int, num_epochs: int, lr_scheduler_warmup_prop: float, test_overfit: bool, device: str, workers: int, architecture: str = ‘bert’, epoch_completion_fraction_before_evals: float = 0.75, seed: int = 42)
- __init__(hf_name, test_path, train_path, training_data_cache_dir, test_data_cache_dir, working_dir, max_length, use_cache, max_docs, stride, batch_size, lr, evaluate_at_step_interval, num_epochs, lr_scheduler_warmup_prop, test_overfit, device, workers, architecture='bert', epoch_completion_fraction_before_evals=0.75, seed=42)[source]¶
- Parameters:
hf_name (str)
test_path (Path)
train_path (Path)
training_data_cache_dir (Path)
test_data_cache_dir (Path)
working_dir (Path)
max_length (int)
use_cache (bool)
max_docs (int | None)
stride (int)
batch_size (int)
lr (float)
evaluate_at_step_interval (int)
num_epochs (int)
lr_scheduler_warmup_prop (float)
test_overfit (bool)
device (str)
workers (int)
architecture (str)
epoch_completion_fraction_before_evals (float)
seed (int)
- Return type:
None