BERT:how to change the output feature?

1 vue (au cours des 30 derniers jours)
XT
XT le 19 Sep 2022
Modifié(e) : XT le 21 Sep 2022
When I use the bert to extract features,the output features are always 768 dimension.How can I change them into 300 dimension?
  9 commentaires
David Willingham
David Willingham le 20 Sep 2022
Hi Rik,
I spoke with development on this, they state:
==
Reducing the features of BERT might not help and wouldn’t recommend doing that in that situation.
It seems that they are trying to extract features of protein sequence from BERT, which is something BERT is not trained for.
==
I note that you have tried Bert already. Are you able to provide some example code? This may help us provide more guidence on this.
XT
XT le 21 Sep 2022
Modifié(e) : XT le 21 Sep 2022
I have uploaded the code and data. I dont't know whether the loss function is correct

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Modeling and Prediction dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by