public class RealValueFileEventStream extends FileEventStream
| Constructor and Description |
|---|
RealValueFileEventStream(File file) |
RealValueFileEventStream(String fileName) |
RealValueFileEventStream(String fileName,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Trains and writes a model based on the events in the specified event file.
|
Event |
next()
Returns the next Event object held in this EventStream.
|
static float[] |
parseContexts(String[] contexts)
Parses the specified contexts and re-populates context array with features
and returns the values for these features.
|
close, hasNext, toLineremovepublic RealValueFileEventStream(String fileName) throws IOException
IOExceptionpublic RealValueFileEventStream(String fileName, String encoding) throws IOException
IOExceptionpublic RealValueFileEventStream(File file) throws IOException
IOExceptionpublic static float[] parseContexts(String[] contexts)
contexts - The contexts with real values specified.public Event next()
EventStreamnext in interface EventStreamnext in class FileEventStreampublic static void main(String[] args) throws IOException
args - eventfile [iterations cuttoff]IOException - when the eventfile can not be read or the model file can not be written.Copyright © 2019 The Apache Software Foundation. All rights reserved.