Anomaly Clustering Train
vims.AnomalyClusteringTrainer
vims Anomaly Clustering 모델을 학습시키기 위한 Trainer class 입니다.
Usage
demo/train_anomaly_cluster.py 참고
build(config, data)
classmethod
AnomalyClusteringTrainer class의 instance를 생성합니다.
Parameters:
train()
to_device(device)
Trainer의 device를 변경합니다. (cpu/gpu)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
device |
Union[device, str, int]
|
변경하고자 하는 device 입니다.
|
required |
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
None |
save_checkpoint(checkpoint_path, metadata=None, password=None)
현재 Trainer의 상태를 암호화하여 저장합니다.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
checkpoint_path |
str
|
checkpoint를 저장할 path 입니다. |
required |
metadata |
Optional[Dict]
|
checkpoint에 저장할 추가 metadata. Defaults to None. |
None
|
password |
Optional[str]
|
checkpoint 파일에서 중요한 정보를 암호화 하는데 사용되는 password 입니다. None이면 암호화하지 않습니다. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
None |