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
import numpy as np | |
import gym | |
from collections.abc import Callable | |
import tensorflow as tf | |
from tensorflow import keras | |
from tensorflow.python.keras.layers import Dense |
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
## Task 1 | |
Last week we implemented | |
the Q-Function: | |
$$Q(s,a) = \sum\limits_{s'}P(s'|s,a)[R(s,a,s') + \gamma \max\limits_{a'}Q(s',a')]$$ | |
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
import random | |
paskeord = [ | |
"7 fjell", | |
"Afterski", | |
"Appelsin", | |
"Appelsinfromasj", | |
"April", | |
"Bål", | |
"Bergen", |
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
unit Mono; | |
{$ifdef fpc} | |
{$mode objfpc}{$H+} | |
{$endif} | |
interface | |
uses | |
Classes; |