adams.flow.transformer.WekaReorderAttributesToReference
Reorders the attributes of the Instance/Instances passing through according to the provided reference dataset (callable actor or reference file).
This ensures that the generated data always has the same structure as the reference dataset.
Flow input/output:
- input: weka.core.Instance, weka.core.Instances
- output: weka.core.Instance, weka.core.Instances
The logging level for outputting errors and debugging output.
command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
default | WARNING |
min-user-mode | Expert |
The name of the actor.
command-line | -name <java.lang.String> |
default | WekaReorderAttributesToReference |
The annotations to attach to this actor.
command-line | -annotation <adams.core.base.BaseAnnotation> |
default |
|
If set to true, transformation is skipped and the input token is just forwarded as it is.
command-line | -skip <boolean> |
default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
command-line | -stop-flow-on-error <boolean> |
default | false |
min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
command-line | -silent <boolean> |
default | false |
min-user-mode | Expert |
The reference dataset to load (when not pointing to a directory).
command-line | -reference-file <adams.core.io.PlaceholderFile> |
default | ${CWD} |
If set to true, then the custom loader will be used for loading the data.
command-line | -use-custom <boolean> |
default | false |
The custom loader to use if enabled.
command-line | -loader <weka.core.converters.AbstractFileLoader> |
default | weka.core.converters.ArffLoader |
The callable actor to use for obtaining the reference dataset in case reference file points to a directory.
command-line | -reference-actor <adams.flow.core.CallableActorReference> |
default | unknown |
If set to true, the reference file is not required to be present at set up time (eg if built on the fly), only at execution time.
command-line | -on-the-fly <boolean> |
default | false |
If set to true, then the internal reorder filter will get initialized only with the first batch of data; otherwise every time data gets passed through.
command-line | -init-once <boolean> |
default | false |
If set to true, attributes from the reference data that are missing in the incoming data get tolerated.
command-line | -lenient <boolean> |
default | false |
If set to true, then the filter won't change the relation name of the incoming dataset.
command-line | -keep <boolean> |
default | false |