-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLCM feature extraction warnings #490
Comments
No, it is just a warning to alert you of the fact that the in this case, joint average and sum average are 100% correlated. So no error, just a notification. |
This warning is useful to know what happens; however, is there anyway to turn it off? Thank you! |
@omaghsoudi you should be able to control that using the following arguments to the command-line extractor. The message you mention is a warning. By reducing the level of verbosity you should be able to disable printing of the warnings to the console.
|
Is there any way that I can turn it off when I load the pyradiomics feature discriptors? I use it as follow: I need to turn off verbose for these features families. Thank you! |
If you use pyradiomics programmatically, you should be able to do something like this (see comments in https://github.com/Radiomics/pyradiomics/blob/master/radiomics/base.py#L22-L23): import logging
# set level for all classes
logger = logging.getLogger("radiomics")
logger.setLevel(logging.ERROR)
# ... or set level for specific class
logger = logging.getLogger("radiomics.glcm")
logger.setLevel(logging.ERROR) I have not tested this, but I think something like this should work. |
As you said, it resolved the issue. Thank you! |
Alternatively, you can selectively filter out warnings of a certain type (in this case,
|
Hi, this solution isn't working for me. I've also tried: As described here: https://pyradiomics.readthedocs.io/en/latest/_modules/radiomics.html However I still get the relentless Please help! |
I have found the following code helpful
|
When I use pyradiomics to extract features, I get the following warning:
GLCM is symmetrical, therefore Sum Average = 2 * Joint Average, only 1 needs to be calculated
Should I pay attention to this warning and find a way to solve it?
The text was updated successfully, but these errors were encountered: