Skip to content
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

Development of the tn4ml library #16

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

gabrieledangeli
Copy link

Here's a brief description of my changes:

  • setup.py: Fixed installation requirements (tested, should be good now).

  • embeggings.py: Implemented the PatchAmplitudeEmbedding class (training suggests not using this embedding). Added a ceiling function to ensure the correct number of address qubits in the AmplitudeEmbedding class.

  • metrics.py: Implemented the CombinedOptaxLoss class to handle combined Log Softmax Cross Entropy loss with L2 Regularization.

  • model.py: Fixed a small bug in the predict function when checking the correct number of tensors in the MPS.

  • utils.py: Fixed the pad_images function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant