public class RealValueFileEventStream extends FileEventStream
Constructor and Description |
---|
RealValueFileEventStream(java.io.File file) |
RealValueFileEventStream(java.lang.String fileName) |
RealValueFileEventStream(java.lang.String fileName,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Trains and writes a model based on the events in the specified event file.
|
static float[] |
parseContexts(java.lang.String[] contexts)
Parses the specified contexts and re-populates context array with features
and returns the values for these features.
|
Event |
read()
Returns the next object.
|
close, reset, toLine
public RealValueFileEventStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public RealValueFileEventStream(java.lang.String fileName, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public RealValueFileEventStream(java.io.File file) throws java.io.IOException
java.io.IOException
public static float[] parseContexts(java.lang.String[] contexts)
contexts
- The contexts with real values specified.public Event read() throws java.io.IOException
ObjectStream
read
in interface ObjectStream<Event>
read
in class FileEventStream
java.io.IOException
- if there is an error during readingpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- eventfile [iterations cuttoff]java.io.IOException
- when the eventfile can not be read or the model file can not be written.Copyright © 2010 - 2020 Adobe. All Rights Reserved