File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- import benchmark
2
- import benchmark .base
1
+ import deeplabcut . benchmark
2
+ import deeplabcut . benchmark .base
3
3
4
4
def test_result ():
5
- result = benchmark .base .Result ("foo" , "bar" )
5
+ result = deeplabcut . benchmark .base .Result ("foo" , "bar" )
6
6
restored = result .fromdict (result .todict ())
7
7
assert restored == result
8
- assert result .benchmark_version == benchmark .__version__
8
+ assert result .benchmark_version == deeplabcut .__version__
9
9
10
10
def test_collection ():
11
11
12
- collection = benchmark .base .ResultCollection ()
12
+ collection = deeplabcut . benchmark .base .ResultCollection ()
13
13
14
- result1 = benchmark .base .Result ("foo" , "bar" , root_mean_squared_error = 42 )
15
- result2 = benchmark .base .Result ("foo" , "baz" )
16
- result_dup = benchmark .base .Result ("foo" , "bar" , root_mean_squared_error = 43 )
14
+ result1 = deeplabcut . benchmark .base .Result ("foo" , "bar" , root_mean_squared_error = 42 )
15
+ result2 = deeplabcut . benchmark .base .Result ("foo" , "baz" )
16
+ result_dup = deeplabcut . benchmark .base .Result ("foo" , "bar" , root_mean_squared_error = 43 )
17
17
18
18
assert len (collection ) == 0
19
19
collection .add (result1 )
You can’t perform that action at this time.
0 commit comments