src.gridmind.feature_construction.tile_coding

This module is based on the tile coding implementation from `Tile Coding Software -- Reference Manual, Version 3.0` by Rich S. Sutton (See: http://incompleteideas.net/tiles/tiles3.html).

Attributes

basehash

iht

Classes

IHT

Structure to handle collisions

TileCoding

Functions

hashcoords(coordinates, m[, readonly])

Module Contents

src.gridmind.feature_construction.tile_coding.basehash[source]
class src.gridmind.feature_construction.tile_coding.IHT(sizeval)[source]

Structure to handle collisions

size[source]
overfullCount = 0[source]
dictionary[source]
__str__()[source]

Prepares a string for printing whenever this object is printed

count()[source]
fullp()[source]
getindex(obj, readonly=False)[source]
src.gridmind.feature_construction.tile_coding.hashcoords(coordinates, m, readonly=False)[source]
class src.gridmind.feature_construction.tile_coding.TileCoding(ihtORsize: int = 4096, numtilings: int = 8)[source]
ihtORsize = 4096[source]
numtilings = 8[source]
static tiles(ihtORsize, numtilings, floats, ints=[], readonly=False)[source]

returns num-tilings tile indices corresponding to the floats and ints

static tileswrap(ihtORsize, numtilings, floats, wrapwidths, ints=[], readonly=False)[source]

returns num-tilings tile indices corresponding to the floats and ints, wrapping some floats

__call__(floats, ints=[], readonly=False)[source]
src.gridmind.feature_construction.tile_coding.iht[source]