fzi-forschungszentrum-informatik / TSInterpret

An Open-Source Library for the interpretability of time series classifiers
BSD 3-Clause "New" or "Revised" License
115 stars 8 forks source link

Remove Print Statement in SaliencyMethods_PTY.py #69

Closed niruc100 closed 1 month ago

niruc100 commented 1 month ago

Motivation. With version 4.4, a print statement was introduced that floats my sys output when I process an instance. I can control this on my side by re-directing the sys output when calling the function but it would be better if it does not print anything or I could deactivate it via a verbose parameter in the explain function.

Describe the solution you'd like Could you please remove the print statement or make it controllable via the explain function?

Location is TSInterpret/InterpretabilityModels/Saliency/SaliencyMethods_PTY.py 354 if input_size>1: 355 for t in range(sequence_length): 356 print('TIME CONR',timeContribution[0, t])

Additional context Thanks for your help!

JHoelli commented 1 month ago

Hi @niruc100,

sorry about that. It should be fixed in the main branch / the new release 0.4.6.

Thanks for reporting.