Skip to content

Instantly share code, notes, and snippets.

@eiriksfa
eiriksfa / Mono.pas
Created August 21, 2017 14:20
Pascal C# embedding test
unit Mono;
{$ifdef fpc}
{$mode objfpc}{$H+}
{$endif}
interface
uses
Classes;
import random
paskeord = [
"7 fjell",
"Afterski",
"Appelsin",
"Appelsinfromasj",
"April",
"Bål",
"Bergen",
## 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')]$$
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