Class NameSampleSequenceStream
public class NameSampleSequenceStream : ObjectStreamBase<Sequence<NameSample>?>, ISequenceStream<NameSample>, IObjectStream<Sequence<NameSample>?>, IDisposable
- Inheritance
-
NameSampleSequenceStream
- Implements
- Inherited Members
Constructors
NameSampleSequenceStream(IObjectStream<NameSample?>)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi)
Parameters
psiIObjectStream<NameSample>
Exceptions
- IOException
if there is an error during reading
NameSampleSequenceStream(IObjectStream<NameSample?>, INameContextGenerator)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi, INameContextGenerator pcg)
Parameters
psiIObjectStream<NameSample>pcgINameContextGenerator
Exceptions
- IOException
if there is an error during reading
NameSampleSequenceStream(IObjectStream<NameSample?>, INameContextGenerator, bool)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi, INameContextGenerator pcg, bool useOutcomes)
Parameters
psiIObjectStream<NameSample>pcgINameContextGeneratoruseOutcomesbool
Exceptions
- IOException
if there is an error during reading
NameSampleSequenceStream(IObjectStream<NameSample?>, INameContextGenerator, bool, ISequenceCodec<string>)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi, INameContextGenerator pcg, bool useOutcomes, ISequenceCodec<string> seqCodec)
Parameters
psiIObjectStream<NameSample>pcgINameContextGeneratoruseOutcomesboolseqCodecISequenceCodec<string>
Exceptions
- IOException
if there is an error during reading
NameSampleSequenceStream(IObjectStream<NameSample?>, IAdaptiveFeatureGenerator)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi, IAdaptiveFeatureGenerator featureGen)
Parameters
psiIObjectStream<NameSample>featureGenIAdaptiveFeatureGenerator
Exceptions
- IOException
if there is an error during reading
NameSampleSequenceStream(IObjectStream<NameSample?>, IAdaptiveFeatureGenerator, bool)
public NameSampleSequenceStream(IObjectStream<NameSample?> psi, IAdaptiveFeatureGenerator featureGen, bool useOutcomes)
Parameters
psiIObjectStream<NameSample>featureGenIAdaptiveFeatureGeneratoruseOutcomesbool
Exceptions
- IOException
if there is an error during reading
Methods
Dispose(bool)
Releases the resources from this object stream.
protected override void Dispose(bool disposing)
Parameters
disposingbool
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override Sequence<NameSample>? Read()
Returns
- Sequence<NameSample>
the next object or
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading
Reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.
The implementation of this method is optional.
public override void Reset()
Exceptions
- IOException
if there is an error during resetting the stream
- NotSupportedException
if reset is not supported on this stream
- IOException
if there is an error during reading
UpdateContext(Sequence<NameSample>, AbstractModel)
Creates a new event array based on the outcomes predicted by the specified parameters for the specified sequence.
public virtual Event[] UpdateContext(Sequence<NameSample> sequence, AbstractModel model)
Parameters
sequenceSequence<NameSample>The sequence to be evaluated.
modelAbstractModelThe model to use for the evaluation.
Returns
- Event[]
event array