Skip to content

Instantly share code, notes, and snippets.

@swati210994
Last active October 15, 2020 16:30
Show Gist options
  • Save swati210994/cd81821246998471ff38ea70f5a64644 to your computer and use it in GitHub Desktop.
Save swati210994/cd81821246998471ff38ea70f5a64644 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"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