logo

Crowdly

Browser

Додати до Chrome

365.221/2/4/6/7/8/9/30/56/67/81/325/326/348/349, UE Hands-on AI II, Rainer Dangl et al., 2026S

Шукаєте відповіді та рішення тестів для 365.221/2/4/6/7/8/9/30/56/67/81/325/326/348/349, UE Hands-on AI II, Rainer Dangl et al., 2026S? Перегляньте нашу велику колекцію перевірених відповідей для 365.221/2/4/6/7/8/9/30/56/67/81/325/326/348/349, UE Hands-on AI II, Rainer Dangl et al., 2026S в moodle.jku.at.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

What does one row of a self-attention matrix represent?

0%
0%
100%
0%
Переглянути це питання

In self-attention, what happens after the attention weights have been computed?

0%
100%
0%
0%
Переглянути це питання

Switch to probability sampling and set the temperature to 3.0. What output do you get now? Add the text here. Why do you think it looks like this?

Also explain the temperature parameter and how it affects the probability distribution of next generated token - what does a high/low temperature mean?

Переглянути це питання

Set the following training hyperparameters:

  • Epochs: 100
  • Learning Rate: 0.001
  • Grad clip: 0.25
  • Seed: 2026
  • Use early stopping: yes
  • Patience: 3
  • Minimum validation loss improvement: 0.001
  • Save the model under a4_shakespeare.pt

Interpret your results:

  • Attach the loss and perplexity plots here.
  • Report your loss and perplexity on the test set.
  • What does the perplexity value in general tell us and how do you now interpret your specific value?
  • What would be the best possible perplexity value, which one the worst (random predictions)?
Переглянути це питання

Generate some text.

  • Use as start text Romeo: (don't forget to include the : - that is important)
  • Length: 120 tokens
  • k: 5
  • Temperature: 0.7
  • Seed: 2026

Generate three texts (probabilistic sampling, top-1 and top-k). List the three texts here. How do the texts differ? Do they capture the style and tone of Shakespearean language in your opinion? Which version manages to do that best?

Переглянути це питання

Switch to top1 (greedy) generation and generate the text again. Then check out the next token probabilities. It is highly likely that the next predicted token after Romeo: is the <eos> token. Why do you think that is?

Переглянути це питання

Enter just the word gleefully in the tokenization textbox. Which token(s) do you get? Why do you think is this word processed in this way?

Переглянути це питання

Elaborate on the tradeoff between dictionary size and sequence length between tokenization schemes (word/char/BPE-subword level).

Переглянути це питання

Now work with the LSTM - Simple (custom forget bias) preset.

Train two models:

  1. with a custom forget gate bias of 0 and
  2. with a custom forget gate bias of 1.

Note: don't forget to click on 'Apply Changes' when you modify the preset in the architecture editor.

Train for 20 epochs with a learning rate of 0.01

Examine the development of the loss/accuracy values over the epochs. How does the initial forget gate bias affect the training here?

Keep in mind - here we only set an initial bias, gradient computation is not disabled, thus in both cases the bias parameter will adapt during training.

In your analysis, also consider for both models the gradient magnitude plots. Show the gradients at initialization and after training and include both plots here.

Переглянути це питання

Now choose 'LSTM' as model type and load the preset LSTM Simple (with forget)

Train for 20 epochs and use learning rate = 0.01. Take a look at how the train/validation accuracies develop over the epochs and what the final test accuracy is. Also check out the gradient magnitude plot (initialization + after training, batches to sample = 10).

Do the same for the LSTM Simple (no forget) preset (20 epochs, lr = 0.01). 

Elaborate on the differences between the two models. How does disabling the forget gate affect performance and the gradient magnitudes (initialization and after training)? 

Attach both plots here.

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.jku.at?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome