Include NNV method for diagnosis#76
Open
tkanzai wants to merge 1 commit intopetrobras:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Este PR adiciona o método Nearest Normal Value (NNV) como opção de
diagnóstico de falhas na BibMon, complementando a decomposição parcial
já existente para contribuições ao SPE.
O que foi adicionado
bibmon/_nnv.py— novo módulo contendo:compute_nnv_contributions: calcula as contribuições NNV via análisecontrafactual — para cada variável, substitui seu valor pelo valor de
referência (normal) e mede a variação resultante no SPE
run_nnv_analysis: análise batch com atualização adaptativa dareferência por média móvel exponencial (alpha fixo), com detecção de
drift via ADWIN para resetar a referência quando a distribuição do
SPE muda
ADWIN: implementação pura em Python do detector de drift ADWIN(Bifet & Gavalda, 2007), sem dependências externas
bibmon/_generic_model.py:compute_SPE_contributionsagora aceitamethod='nnv'além domethod='classic'já existentennv_analysis()emGenericModelpara diagnósticocom atualização adaptativa da referência
plot_NNV_contributions()para visualização em heatmapbibmon/__init__.py:compute_nnv_contributionserun_nnv_analysisexportados para o namespace da biblioteca
Referências
for process monitoring with kernel principal component analysis.
Industrial & Engineering Chemistry Research, 49(17), 7849–7857.
adaptive windowing. Proceedings of the 2007 SIAM International
Conference on Data Mining.
contribution analysis: a novel perspective on anomaly diagnosis.
Processes, 14(5), 859. https://doi.org/10.3390/pr14050859.