Skip to content

Commit

Permalink
Merge pull request #294 from yoshitomo-matsubara/dev
Browse files Browse the repository at this point in the history
Rename loss-related classes and functions
  • Loading branch information
yoshitomo-matsubara authored Mar 24, 2023
2 parents a016d1e + 4b442d2 commit a24d70c
Show file tree
Hide file tree
Showing 124 changed files with 162 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ train:
milestones: [5, 15]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
factor: 0.0
sub_terms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ train:
milestones: [5, 15]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
factor: 0.0
sub_terms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ train:
milestones: [30, 60, 90]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ train:
milestones: [30, 60, 90]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ train:
milestones: [30, 60]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ train:
momentum: 0.9
weight_decay: 0.0001
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
factor: 0.0
sub_terms:
Expand Down Expand Up @@ -183,7 +183,7 @@ train:
milestones: [30, 60, 90]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ train:
milestones: [30, 60, 90]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ train:
milestones: [30]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ train:
milestones: [10, 20]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
factor: 0.0
sub_terms:
Expand Down Expand Up @@ -171,7 +171,7 @@ train:
milestones: [30, 60, 90]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
factor: 0.0
sub_terms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ train:
milestones: [30, 60, 80]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet110-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet1202-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet20-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet32-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet44-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/resnet56-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/wide_resnet16_8-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/wide_resnet28_10-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
2 changes: 1 addition & 1 deletion configs/sample/cifar10/ce/wide_resnet40_4-final_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ train:
milestones: [91, 136]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ train:
milestones: [60, 120, 160]
gamma: 0.2
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'KDLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ train:
milestones: [150, 225]
gamma: 0.1
criterion:
type: 'GeneralizedCustomLoss'
type: 'WeightedSumLoss'
org_term:
criterion:
type: 'CrossEntropyLoss'
Expand Down
Loading

0 comments on commit a24d70c

Please sign in to comment.