December 2018
Intermediate to advanced
268 pages
8h 23m
English
The training class initialization step will be described in the following section—here are the steps to create the bare bones training class:
#!/usr/bin/env python3from gan import GANfrom generator import Generatorfrom discriminator import Discriminatorfrom keras.datasets import mnistfrom random import randintimport numpy as npimport matplotlib.pyplot as pltimport h5py # This import registers the 3D projection, but is otherwise unused.from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused importfrom voxelgrid import VoxelGrid
class Trainer: def __init__(self, side=16, latent_size=32, epochs ...
Read now
Unlock full access