mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 00:31:27 +08:00
ENH: Added dynamic name functionality to record() API function.
Added the ability to pass *args before the **kwargs so that positional arguments of the form name, value can be recorded.
This commit is contained in:
committed by
Scott Sanderson
parent
75b415ac48
commit
c3169f60cd
@@ -98,6 +98,12 @@ class TestRecordAlgorithm(TestCase):
|
||||
|
||||
np.testing.assert_array_equal(output['incr'].values,
|
||||
range(1, len(output) + 1))
|
||||
np.testing.assert_array_equal(output['name'].values,
|
||||
range(1, len(output) + 1))
|
||||
np.testing.assert_array_equal(output['name2'].values,
|
||||
[2] * len(output))
|
||||
np.testing.assert_array_equal(output['name3'].values,
|
||||
range(1, len(output) + 1))
|
||||
|
||||
|
||||
class TestMiscellaneousAPI(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user