public final class LocalLearnerProcessor extends Object implements Processor
Constructor and Description |
---|
LocalLearnerProcessor() |
Modifier and Type | Method and Description |
---|---|
ChangeDetector |
getChangeDetector() |
long |
getInstancesCount()
Gets the instances count.
|
LocalLearner |
getLearner()
Gets the learner.
|
Stream |
getOutputStream()
Gets the output stream.
|
Processor |
newProcessor(Processor sourceProcessor)
Creates a copy of a processor.
|
void |
onCreate(int id)
Initializes the Processor.
|
boolean |
process(ContentEvent event)
On event.
|
void |
setChangeDetector(ChangeDetector cd) |
void |
setLearner(LocalLearner model)
Sets the learner.
|
void |
setOutputStream(Stream outputStream)
Set the output streams.
|
public void setLearner(LocalLearner model)
model
- the model to setpublic LocalLearner getLearner()
public void setOutputStream(Stream outputStream)
outputStream
- the new output stream
PredictionCombinerPE
.public Stream getOutputStream()
public long getInstancesCount()
public boolean process(ContentEvent event)
public void onCreate(int id)
Processor
process
method.public Processor newProcessor(Processor sourceProcessor)
Processor
Processsor
.newProcessor
in interface Processor
sourceProcessor
- the processor to be copied.Processor
.public ChangeDetector getChangeDetector()
public void setChangeDetector(ChangeDetector cd)
Copyright © 2014 Yahoo! Labs. All rights reserved.