public class TextGenerationLSTM extends ZooModel
totalUniqueCharacters
for the LSTM input layer.
Architecture follows this implementation: https://github.com/fchollet/keras/blob/master/examples/lstm_text_generation.py
Walt Whitman weights are available for generating text from his works, adapted from https://github.com/craigomac/InfiniteMonkeys.
ROOT_CACHE_DIR
Constructor and Description |
---|
TextGenerationLSTM(int numLabels,
long seed,
int iterations) |
TextGenerationLSTM(int numLabels,
long seed,
int iterations,
WorkspaceMode workspaceMode) |
Modifier and Type | Method and Description |
---|---|
MultiLayerConfiguration |
conf() |
Model |
init() |
ModelMetaData |
metaData() |
Class<? extends Model> |
modelType() |
long |
pretrainedChecksum(PretrainedType pretrainedType) |
String |
pretrainedUrl(PretrainedType pretrainedType) |
void |
setInputShape(int[][] inputShape) |
ZooType |
zooType() |
initPretrained, initPretrained, pretrainedAvailable
public TextGenerationLSTM(int numLabels, long seed, int iterations)
public TextGenerationLSTM(int numLabels, long seed, int iterations, WorkspaceMode workspaceMode)
public String pretrainedUrl(PretrainedType pretrainedType)
public long pretrainedChecksum(PretrainedType pretrainedType)
public ZooType zooType()
public MultiLayerConfiguration conf()
public Model init()
public ModelMetaData metaData()
public void setInputShape(int[][] inputShape)
Copyright © 2017. All rights reserved.