You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct callback initialization method call in Learner class
Problem Description
There is a minor error in the initialize_callbacks method of the Learner class in the PatchTST_self_supervised/src/learner.py file. The current code attempts to call the init_cb method of the callbacks, but the correct method name should be init_cb_.
Current Code
# in PatchTST_self_supervised/src/learner.pydefinitialize_callbacks(self, cbs):
# ... other code ...# Call the init_cb method of all callbacks (if it exists)self('init_cb')
Expected Change
# in PatchTST_self_supervised/src/learner.pydefinitialize_callbacks(self, cbs):
# ... other code ...# Call the init_cb_ method of all callbacks (if it exists)self('init_cb_')
Reason
In the PatchTST_self_supervised/src/callback/tracking.py file, the TrackTrainingCB class defines the init_cb_ method:
To maintain consistency and ensure the correct initialization method is called, we need to use the correct method name in the Learner class.
Impact
This change will ensure that the initialization methods of all callbacks are correctly called, thus guaranteeing the proper functioning of various settings and recording features during the training process.
The text was updated successfully, but these errors were encountered:
修正 Learner 类中的回调函数初始化方法调用
问题描述
在
PatchTST_self_supervised/src/learner.py
文件中,Learner 类的initialize_callbacks
方法中存在一个小错误。当前代码试图调用回调函数的init_cb
方法,但实际上正确的方法名应该是init_cb_
。当前代码
期望的修改
原因
在
PatchTST_self_supervised/src/callback/tracking.py
文件中,TrackTrainingCB 类定义了init_cb_
方法:为了保持一致性并确保正确调用初始化方法,我们需要在 Learner 类中使用正确的方法名。
影响
这个修改将确保所有回调函数的初始化方法被正确调用,从而保证训练过程中的各项设置和记录功能正常运行。
Correct callback initialization method call in Learner class
Problem Description
There is a minor error in the
initialize_callbacks
method of the Learner class in thePatchTST_self_supervised/src/learner.py
file. The current code attempts to call theinit_cb
method of the callbacks, but the correct method name should beinit_cb_
.Current Code
Expected Change
Reason
In the
PatchTST_self_supervised/src/callback/tracking.py
file, the TrackTrainingCB class defines theinit_cb_
method:To maintain consistency and ensure the correct initialization method is called, we need to use the correct method name in the Learner class.
Impact
This change will ensure that the initialization methods of all callbacks are correctly called, thus guaranteeing the proper functioning of various settings and recording features during the training process.
The text was updated successfully, but these errors were encountered: