Views
No views yet
1TextClassificationModel {
2 transformer: TransformerEncoder {d_model: 256, d_ff: 1024, n_heads: 8, n_layers: 4, dropout: 0.1, norm_first: true, quiet_softmax: true, params: 3159040}
3 embedding_token: Embedding {n_embedding: 28996, d_model: 256, params: 7422976}
4 embedding_pos: Embedding {n_embedding: 256, d_model: 256, params: 65536}
5 embed_dropout: Dropout {prob: 0.1}
6 output_dropout: Dropout {prob: 0.1}
7 output: Linear {d_input: 256, d_output: 3, bias: true, params: 771}
8 n_classes: 3
9 max_seq_length: 256
10 params: 10648323
11}| Split | Metric | Min. | Epoch | Max. | Epoch |
|---|---|---|---|---|---|
| Train | Loss | 1.120 | 5 | 1.171 | 1 |
| Train | Accuracy | 33.743 | 2 | 37.814 | 1 |
| Train | Learning Rate | 2.763e-8 | 1 | 7.648e-8 | 2 |
| Valid | Loss | 1.102 | 4 | 1.110 | 1 |
| Valid | Accuracy | 32.760 | 2 | 36.900 | 5 |
/predict1{
2 "text": "I love the new features in this app!"
3}1{
2 "sentiment": "Positive"
3}