BERT:how to change the output feature?

2 ビュー (過去 30 日間)
XT
XT 2022 年 9 月 19 日
編集済み: XT 2022 年 9 月 21 日
When I use the bert to extract features,the output features are always 768 dimension.How can I change them into 300 dimension?
  9 件のコメント
David Willingham
David Willingham 2022 年 9 月 20 日
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 2022 年 9 月 21 日
編集済み: XT 2022 年 9 月 21 日
I have uploaded the code and data. I dont't know whether the loss function is correct

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling and Prediction についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by