Skip to content

Bug: should not use cross entropy to train Mixed_NN_ADQC network #7

@ifsheldon

Description

@ifsheldon

criterion = nn.CrossEntropyLoss()

This line has a minor bug in that the below line gives normalized probabilities, as you mentioned in your lecture.

y = probabilities_adqc_classifier(psi1, 1, 2)

So, the criterion should not be cross entropy. Instead, it should be like this line

loss = criteria(tc.log(psi1), lbs)

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