recunn.datasets
Class TextGenerationUnbroken
- java.lang.Object
-
- recunn.datastructs.DataSet
-
- recunn.datasets.TextGenerationUnbroken
-
- All Implemented Interfaces:
- java.io.Serializable
public class TextGenerationUnbroken extends DataSet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static booleanreportPerplexitystatic intreportSequenceLength-
Fields inherited from class recunn.datastructs.DataSet
inputDimension, lossReporting, lossTraining, outputDimension, testing, training, validation
-
-
Constructor Summary
Constructors Constructor and Description TextGenerationUnbroken(java.lang.String path, int totalSequences, int sequenceMinLength, int sequenceMaxLength, java.util.Random rng)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidDisplayReport(Model model, java.util.Random rng)static java.lang.StringgenerateText(Model model, int steps, boolean argmax, double temperature, java.util.Random rng)NonlinearitygetModelOutputUnitToUse()
-
-
-
Field Detail
-
reportSequenceLength
public static int reportSequenceLength
-
reportPerplexity
public static boolean reportPerplexity
-
-
Constructor Detail
-
TextGenerationUnbroken
public TextGenerationUnbroken(java.lang.String path, int totalSequences, int sequenceMinLength, int sequenceMaxLength, java.util.Random rng) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
generateText
public static java.lang.String generateText(Model model, int steps, boolean argmax, double temperature, java.util.Random rng) throws java.lang.Exception
- Throws:
java.lang.Exception
-
DisplayReport
public void DisplayReport(Model model, java.util.Random rng) throws java.lang.Exception
- Specified by:
DisplayReportin classDataSet- Throws:
java.lang.Exception
-
getModelOutputUnitToUse
public Nonlinearity getModelOutputUnitToUse()
- Specified by:
getModelOutputUnitToUsein classDataSet
-
-
DataMelt 3.0 © DataMelt by jWork.ORG