Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 1 6 ] METRICS = BinaryAccuracy ( name = ' 'accuracy' ) , Precision ( name = ' 'precision' ) , Recall ( name

[16]
METRICS =
BinaryAccuracy (name=' 'accuracy'),
Precision(name=' 'precision'),
Recall(name='recall'),
AUC(name=' prc', curve='PR'), # precision-recall curve
(a)(3) Next, you will define the deep learning model with BERT and build the model. View the model summary as output.
Your model should include:
-an input layer
-a BERT preprocessing layer
-a BERT layer (including inputs, BERT encoder, and outputs)
-a hidden layer with 64 nodes and reLu activation function
-a hidden layer with 28 nodes and reLu activation function
-an output layer with 1 node and sigmoid activation function
[]
(b)(3) Setup the optimizer as in the BERT paper. Set the initial learning rate to 5e-5.
[]
(c)(2) Compile and fit your model.
[]
(a)(2) Evaluate the model on both the training and testing sets to evaluate both performance and goodness of fit.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions