電荷負載分解(NILM)評價指標代碼詳解

有關NILM中的評價指標的解釋請看咱們另一篇博文 ,下面簡單解釋一下代碼實現,代碼爲python版本。python import numpy as np def tp_tn_fp_fn(states_pred, states_ground): # 定義tp,tn,fp,fn,np.logical_and爲邏輯與 tp = np.sum(np.logical_and(states_pre
相關文章
相關標籤/搜索