Skip to content

Something strange in the codes of Siamese codes (declaration of CNN) #1

@set92

Description

@set92

In both siamese codes you have the class CNN with a parameter n_classes but you never used it, so you can initialize empty? or is a mistake and it need that parameter for something?

# define the CNN and move the network into GPU cnn = CNN(10) cnn.cuda()

And different question, Im thinking in building a Siamese network with LSTM for the quora questions competition of kaggle (learning purpose only), I thought maybe it was better to build first a Siamese with basic RNN but I didn't know where to start. It is suppose I had to know how to implement reading only the papers?
Thanks

EDIT: Maybe the n_classes is the same as x in forward parameter? So, is a way of python to encapsule variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions