Configurable
, java.io.Serializable
, CapabilitiesHandler
, MOAObject
, OptionHandler
, ExampleStream<Example<Instance>>
, InstanceStream
public class AssetNegotiationGenerator extends AbstractOptionHandler implements InstanceStream
discussed in F. Enembreck, B. C. Ávila, E. E. Scalabrin
J-P. Barthès. LEARNING DRIFTING NEGOTIATIONS. In Applied Artificial
Intelligence: An International Journal. Volume 21, Issue 9, 2007. DOI:
10.1080/08839510701526954
,
used in the data stream configuration in J. P. Barddal, H. M.
Gomes, F. Enembreck, B. Pfahringer A. Bifet. ON DYNAMIC FEATURE WEIGHTING
FOR FEATURE DRIFTING DATA STREAMS. In European Conference on Machine Learning
and Principles and Practice of Knowledge Discovery (ECML/PKDD'16). 2016.
,
Serialized FormModifier and Type | Class | Description |
---|---|---|
protected static interface |
AssetNegotiationGenerator.ClassFunction |
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String[] |
amountValues |
|
protected AssetNegotiationGenerator.ClassFunction |
classFunction |
|
protected static java.lang.String[] |
classValues |
|
protected static java.lang.String[] |
colorValues |
|
protected static AssetNegotiationGenerator.ClassFunction[] |
concepts |
|
protected static java.lang.String[] |
deliveryDelayValues |
|
IntOption |
functionOption |
|
protected java.util.Random |
instanceRandom |
|
IntOption |
instanceRandomSeedOption |
|
protected boolean |
nextClassShouldBeZero |
|
FloatOption |
noisePercentage |
|
protected static java.lang.String[] |
paymentValues |
|
protected static java.lang.String[] |
priceValues |
|
protected InstancesHeader |
streamHeader |
config
Constructor | Description |
---|---|
AssetNegotiationGenerator() |
Modifier and Type | Method | Description |
---|---|---|
long |
estimatedRemainingInstances() |
Gets the estimated number of remaining instances in this stream
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
InstancesHeader |
getHeader() |
Gets the header of this stream.
|
boolean |
hasMoreInstances() |
Gets whether this stream has more instances to output.
|
boolean |
isRestartable() |
Gets whether this stream can restart.
|
InstanceExample |
nextInstance() |
Gets the next example from this stream.
|
protected void |
prepareForUseImpl(TaskMonitor tm,
ObjectRepository or) |
This method describes the implementation of how to prepare this object for use.
|
void |
restart() |
Restarts this stream.
|
copy, measureByteSize, measureByteSize, toString
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
getCapabilities
defineImmutableCapabilities
copy, measureByteSize
public IntOption functionOption
public FloatOption noisePercentage
public IntOption instanceRandomSeedOption
protected InstancesHeader streamHeader
protected java.util.Random instanceRandom
protected boolean nextClassShouldBeZero
protected AssetNegotiationGenerator.ClassFunction classFunction
protected static java.lang.String[] colorValues
protected static java.lang.String[] priceValues
protected static java.lang.String[] paymentValues
protected static java.lang.String[] amountValues
protected static java.lang.String[] deliveryDelayValues
protected static java.lang.String[] classValues
protected static AssetNegotiationGenerator.ClassFunction[] concepts
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentprotected void prepareForUseImpl(TaskMonitor tm, ObjectRepository or)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
tm
- the TaskMonitor to useor
- the ObjectRepository to usepublic InstancesHeader getHeader()
ExampleStream
getHeader
in interface ExampleStream<Example<Instance>>
public long estimatedRemainingInstances()
ExampleStream
estimatedRemainingInstances
in interface ExampleStream<Example<Instance>>
public boolean hasMoreInstances()
ExampleStream
hasMoreInstances
in interface ExampleStream<Example<Instance>>
public InstanceExample nextInstance()
ExampleStream
nextInstance
in interface ExampleStream<Example<Instance>>
public boolean isRestartable()
ExampleStream
isRestartable
in interface ExampleStream<Example<Instance>>
public void restart()
ExampleStream
restart
in interface ExampleStream<Example<Instance>>
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.