Coder Social home page Coder Social logo

cnncancertype's People

Contributors

mmostavi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cnncancertype's Issues

Code for downloading input data

I am working on a thesis, and want to download data from TCGA. I came across R scripts, but the downloaded data is a bit haywire. Is it possible for you to share the code of how you downloaded the data from TCGA?

Preprocessing

@MMostavi , would it be possible to disclose the preprocessing code making the input data files?

1D Convolutional Neural Network not 1D as claimed

Hello,

I was hoping to mimic your method for the 1D convolutional neural network cited in your paper. When I came to assess your code for the 1D CNN I was surprised to see that all the code was a 2D CNN. Instead of inputting a vector as stated in the paper, it seems like whats inputted is the same expected input as the 2D CNN. Therefore I am curious if the code provided is incorrect?
From your paper:
"This CNN model takes the gene expression as a vector and applies one-dimensional kernels to the input vector [....] The input for 1D-CNN (Fig. 1a) is a 1D vector following gene symbol’s alphabetic order, "

However per your code:

 X_cancer_samples_mat = np.reshape(X_cancer_samples_mat, (-1, 71, 100))
for train, test in kfold.split(X_cancer_samples_34, y_s):   # input_Xs in normal case and shuffled should be shuffled_Xs
input_Xs = input_Xs.reshape(input_Xs.shape[0], img_rows, img_cols, 1)
input_shape = (img_rows, img_cols, 1)
input_Xs = input_Xs.astype('float32')

num_classes = len(onehot_encoded[0])

model = Sequential()
## *********** First layer Conv
model.add(Conv2D(32, kernel_size=(1, 71), strides=(1, 1),
                 input_shape=input_shape))

You reshape the vector per the wrapper method into a 71 x 100 2D input. Is there other code doing what you claim in the paper?

Edit:
It looks like the code for the 1D CNN is actually the code for the 2D Hybrid CNN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.