radiomics | python implementation of the Radiomics approach | Machine Learning library
kandi X-RAY | radiomics Summary
kandi X-RAY | radiomics Summary
A python implementation of the Radiomics approach by Aerts et al (
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Calculate the feature features for each image
- Clip an image to a bounding box
- Calculate the bounding box of an image
- Calculate gray - level cooccurrence features
- Extract the super features from an image
radiomics Key Features
radiomics Examples and Code Snippets
Community Discussions
Trending Discussions on radiomics
QUESTION
I try to solve a common problem in medicine: the combination of a prediction model with other sources, eg, an expert opinion [sometimes heavily emphysised in medicine], called superdoc
predictor in this post.
This could be solved by stack a model with a logistic regression (that enters the expert opinion) as described on page 26 in this paper:
Afshar P, Mohammadi A, Plataniotis KN, Oikonomou A, Benali H. From Handcrafted to Deep-Learning-Based Cancer Radiomics: Challenges and Opportunities. IEEE Signal Process Mag 2019; 36: 132–60. Available here
I've tried this here without considering overfitting (I did not apply out of fold predictions of the lower learner):
Example data
...ANSWER
Answered 2021-Mar-17 at 00:10I think mlr3
/ mlr3pipelines
is well suited for your task. It appears that what you are missing is mainly the PipeOpSelect
/ po("select")
, which lets you extract features based on their name or other properties and makes use of Selector
objects. Your code should probably look something like
QUESTION
My problem
I would like to build a logistic regression model with a high AUC in predicting a binary variable.
I would like to use the following approach (if feasible):
Use an elastic net model (
glmnet
) to reduce the predictors and find the best hyperparameter (alpha and lambda)Combine the output of this model (a simple linear combination) with an additional predictor (the opinion of a super doctor
superdoc
) in a logistic regression model (=finalmodel
), similar as described on page 26 in:
Afshar P, Mohammadi A, Plataniotis KN, Oikonomou A, Benali H. From Handcrafted to Deep-Learning-Based Cancer Radiomics: Challenges and Opportunities. IEEE Signal Process Mag 2019; 36: 132–60. Available here
Example data
As example data I have a dataset with many numeric predictors and a binary (pos
/neg
) outcome (diabetes
).
ANSWER
Answered 2021-Mar-15 at 19:26Thanks to @missuse I could solve my questions:
Cross-validation does not help get the most accurate model. This (resp. my) misunderstanding is discussed beautifully in the blog post: The "Cross-Validation - Train/Predict" misunderstanding
The problem with seed depending variations of predictor's coefficients of glmnet
in small datasets can be migitated with repeated cross-validation (ie, "repeatedcv"
in caret::trainControl
as described in the comments here)
Stacked learners (in my case stacked glmnet
and glm
) are usually built using out of fold predictions from lower level lerners. This could be done using the mlr3
package as described in this blog post: Tuning a stacked learner. Since this was not an initial question, I opened a new question here.
QUESTION
I am trying to visualize features that were extracted from a dataset of CT-scans using radiomics. I extracted features using the Pyradiomics library, and now I have a few .csv
files.
I found this R Library which can read a dataset and generate images for it. Reading the dataset works according to plan using the input = import_pyradiomics(dir = "/path/to/datadir")
command, but when I try to visualize it using for instance plot_correlation_matrix(rdr = input, view_as = "heatmap")
, one of the visualization functions, I get the following error:
Error: $ operator not defined for this S4 class
I read about S3 and S4 classes, and I think that [line 160] in the library is where this error occurs first as it attempts to call this '$' operator. I am currently using R version 4.0.2. It seems to me like this issue is caused by this R library relying on an older version of R, but it is relatively up to date. What can I do to resolve this issue? Do I have to go in and manually change the code in the library? Or is there an easier fix, such as casting the S4 class to an S3 class? I feel like I'm missing an easy solution because I'm not familiar with R.
I found a similar question here, but it doesn't answer my specific question. Answers on other questions regarding this topic also do not work for me unfortunately.
...ANSWER
Answered 2020-Sep-08 at 21:04I am the developer of RadAR, thank you for your interest in our package. The issue was probably related to the use of a different version of the SummarizedExperiment R package. The bug has now been fixed. You can re-install the new version of RadAR from https://github.com/cgplab/RadAR. For any questions related to RadAR, please refer to the "issues" section of the RadAR github page.
QUESTION
I'm trying to install a package from Anaconda Cloud called pyradiomics. So I wrote this Dockerfile:
...ANSWER
Answered 2020-Aug-16 at 14:293.8 doesn't seem to be supportd as per https://pyradiomics.readthedocs.io/en/latest/installation.html#install-via-conda, though the 3.7 install conditions might contain an error.
In this case you can try to contact the authors or try with pip.
QUESTION
I want to calculate ICC for multiple data.frame simultaneity. All my data.frame have the same structure (5 columns by 83 rows). I created a function (my_icc) that generated the ICC and put the result in a table. I saw in this web site that when you want to apply a function on multiple data.frame at the same time, you need to put your data into a list. (Apply a function to multiple dataframes) However, my function doesn’t seem to support list element, because I use the function select. I use select function because, I want to do the ICC with my 3:5 columns. If I apply my function on one data.frame at the time, I don’t have any problem.
...ANSWER
Answered 2020-Jul-29 at 18:39In this case, you don’t need a list. Because your files name are numbers, you just need to specify in your for loop the interval of number that represent the names.
QUESTION
I use pyinstaller to package my python program into executable program(exe).
my program version:
Pyinstaller :3.3.1
Python :3.6.1 Windows:10-10.0.16299-SP0
I can run the data_processing_gui.py file with the command "python data_processing_gui.py" in my command-line window without any ERROR.
I use the command to package my python program(which name is data_processing_gui.py):
...ANSWER
Answered 2019-May-17 at 16:02I find a solution for my problem in the answers to the following question ModuleNotFoundError: No module named 'pandas._libs.tslibs.timedeltas'
I can't explain why but it does solve my problem.
The solution is: After generating the ".spec" file using pyinstaller,add the missing module into the ".spec" file at "hiddenimport=[]",like this:
QUESTION
I have installed a python library called PyRadiomics by doing:
pip install pyradiomics
When I do pip freeze | grep pyra
in the command prompt, I see pyradiomics==2.0.0
clearly showing that the library was installed.
When I start a python interpreter and do import pyradiomics
, it does not work. I realized that I need to do import radiomics
.
I just happened to figure this out by luck.
How is someone supposed to know how to import a library into their python script after installing it using pip. It seems that currently, you could install a library with pip install some_name
and have to do import some_other_name
in your Python code. I have been using Python for a while but never came across this before which lead me to assume that some_name
is always the same as some_other_name
but I found out that this is not the case.
How is someone supposed to know what that other name is after installing a library called some_name
ANSWER
Answered 2018-Aug-06 at 22:02pip
can list installed files for any package installed by it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install radiomics
You can use radiomics like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page