File tree 2 files changed +37
-25
lines changed
2 files changed +37
-25
lines changed Original file line number Diff line number Diff line change @@ -27,28 +27,3 @@ def test_diva_fbopt():
27
27
"""
28
28
args = "--te_d=caltech --task=mini_vlcs --debug --bs=2 --model=diva --gamma_y=1.0 --trainer=fbopt --nname=alexnet --epos=3 --no_dump"
29
29
utils_test_algo (args )
30
-
31
-
32
- def test_erm_fbopt ():
33
- """
34
- erm
35
- """
36
- args = "--te_d=caltech --task=mini_vlcs --debug --bs=2 --model=erm --trainer=fbopt --nname=alexnet --epos=3 --no_dump" # pylint: disable=line-too-long
37
- with pytest .raises (RuntimeError ):
38
- utils_test_algo (args )
39
-
40
-
41
- def test_irm_fbopt ():
42
- """
43
- irm
44
- """
45
- args = "--te_d=caltech --task=mini_vlcs --debug --bs=2 --model=erm --trainer=fbopt_irm --nname=alexnet --epos=3 --no_dump" # pylint: disable=line-too-long
46
- utils_test_algo (args )
47
-
48
-
49
- def test_forcesetpoint_fbopt ():
50
- """
51
- diva
52
- """
53
- args = "--te_d=0 --tr_d 1 2 --task=mnistcolor10 --bs=16 --model=jigen --trainer=fbopt --nname=conv_bn_pool_2 --epos=10 --es=0 --mu_init=0.00001 --coeff_ma_setpoint=0.5 --coeff_ma_output_state=0.99 --force_setpoint_change_once --no_dump"
54
- utils_test_algo (args )
Original file line number Diff line number Diff line change
1
+ """
2
+ unit and end-end test for deep all, mldg
3
+ """
4
+ import pytest
5
+ from tests .utils_test import utils_test_algo
6
+
7
+
8
+ def test_erm_fbopt ():
9
+ """
10
+ erm
11
+ """
12
+ args = "--te_d=caltech --task=mini_vlcs --debug --bs=2 --model=erm \
13
+ --trainer=fbopt --nname=alexnet --epos=3 \
14
+ --no_dump" # pylint: disable=line-too-long
15
+ with pytest .raises (RuntimeError ):
16
+ utils_test_algo (args )
17
+
18
+
19
+ def test_irm_fbopt ():
20
+ """
21
+ irm
22
+ """
23
+ args = "--te_d=caltech --task=mini_vlcs --debug --bs=2 --model=erm \
24
+ --trainer=fbopt_irm --nname=alexnet --epos=3 \
25
+ --no_dump" # pylint: disable=line-too-long
26
+ utils_test_algo (args )
27
+
28
+
29
+ def test_forcesetpoint_fbopt ():
30
+ """
31
+ diva
32
+ """
33
+ args = "--te_d=0 --tr_d 1 2 --task=mnistcolor10 --bs=16 --model=jigen \
34
+ --trainer=fbopt --nname=conv_bn_pool_2 --epos=10 --es=0 \
35
+ --mu_init=0.00001 --coeff_ma_setpoint=0.5 \
36
+ --coeff_ma_output_state=0.99 --force_setpoint_change_once --no_dump"
37
+ utils_test_algo (args )
You can’t perform that action at this time.
0 commit comments