0
我一直在我的numba代碼收到此錯誤:Numba:如何取消
Warning 101:0: Unused argument 'self'
我numba代碼如下。我如何抑制錯誤信息?
@autojit
def initialise_output_data(self, input_data, output_data, params):
# Unpack Params
#omega = params['omega']
#beta = params['beta']
#gamma = params['gamma']
psi = params['psi']
# Unpack Output Data
mu = output_data['mu']
s2 = output_data['sigma2']
res = output_data['residuals']
res2 = output_data['residuals2']
# Initialise Garch Variables
s2[0] = input_data[ 'sample_var' ]
res[0] = psi[0]/(1.0-psi[1])
res2[0] = res[0]**2
mu[0] = psi[0] + psi[1]*res[0]
...刪除未使用的參數? – delnan
嗯,它是一個類的一部分。 – Ginger
...不需要放在課堂上嗎? – delnan