-
-
Save Wapiti08/864bf134106d59ccc57f2f7eda045910 to your computer and use it in GitHub Desktop.
bert_basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bert_model = TFBertForSequenceClassification.from_pretrained(model_name, num_labels=num_classes) | |
bert_model.compile(loss='categorical_crossentropy', optimizer='adam',metrics=['accuracy']) | |
bert_model.summary() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment