Last active
October 15, 2020 16:30
-
-
Save swati210994/cd81821246998471ff38ea70f5a64644 to your computer and use it in GitHub Desktop.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 15, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Epoch 1/4\n", | |
"140/140 [==============================] - 313s 2s/step - loss: 0.0299 - accuracy: 0.9930 - val_loss: 0.0700 - val_accuracy: 0.9839\n", | |
"Epoch 2/4\n", | |
"140/140 [==============================] - 333s 2s/step - loss: 0.0207 - accuracy: 0.9948 - val_loss: 0.0563 - val_accuracy: 0.9865\n", | |
"Epoch 3/4\n", | |
"140/140 [==============================] - 349s 2s/step - loss: 0.0180 - accuracy: 0.9960 - val_loss: 0.0696 - val_accuracy: 0.9848\n", | |
"Epoch 4/4\n", | |
"140/140 [==============================] - 348s 2s/step - loss: 0.0064 - accuracy: 0.9991 - val_loss: 0.0792 - val_accuracy: 0.9865\n" | |
] | |
} | |
], | |
"source": [ | |
"history=bert_model.fit([train_inp,train_mask],train_label,batch_size=32,epochs=4,validation_data=([val_inp,val_mask],val_label),callbacks=callbacks)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.7.7" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment