|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.example.AbstractExampleReader
edu.udo.cs.yale.example.WeightingExampleReader
public class WeightingExampleReader
This reader takes the selection and weighting of attributes into account.
| Field Summary | |
|---|---|
private java.util.Iterator<Example> |
parentReader
The parent example reader. |
private Attribute[] |
selectedAttributes
The selection of the attributes. |
private java.util.Map<java.lang.String,Attribute> |
specialAttributes
The special attributes of the example set. |
private WeightApplier |
weightApplier
The weight applier which should be used to calculate the actual values. |
private AttributeWeights |
weights
The weights of the attributes. |
| Constructor Summary | |
|---|---|
WeightingExampleReader(java.util.Iterator<Example> er,
ExampleSet exampleSet,
AttributeWeights weights,
WeightApplier weightApplier)
Creates a attribute weighting example reader. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Example |
next()
|
| Methods inherited from class edu.udo.cs.yale.example.AbstractExampleReader |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Iterator<Example> parentReader
private Attribute[] selectedAttributes
private java.util.Map<java.lang.String,Attribute> specialAttributes
private AttributeWeights weights
private WeightApplier weightApplier
| Constructor Detail |
|---|
public WeightingExampleReader(java.util.Iterator<Example> er,
ExampleSet exampleSet,
AttributeWeights weights,
WeightApplier weightApplier)
| Method Detail |
|---|
public boolean hasNext()
public Example next()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||