input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public int add operator operator operator boolean register with process if operator null throw new null pointer exception operator cannot be null if operator instanceof process root operator throw new illegal argument exception process operator cannot be added it must always be the top level operator operators add operator register operator operator register with process return operators size 1
|
adds the operator to this execution unit
|
public void add operator operator operator int index if operator null throw new null pointer exception operator cannot be null if operator instanceof process root operator throw new illegal argument exception process operator cannot be added it must always be the top level operator operators add index operator register operator operator true
|
adds the operator to this execution unit
|
protected void set name string new name this name new name
|
dont use this method
|
public void pause this set process state process state paused
|
stops the process as soon as possible
|
protected void remove operator operator operator if operators contains operator throw new no such element exception operator operator get name not contained in get name int old index operators index of operator int old index among enabled get enabled operators index of operator operators remove operator unregister operator operator disconnect ports transform mdneighbourhood process process get enclosing operator get process if process null process fire operator removed operator old index old index among enabled operator set enclosing process null fire update this
|
removes the given operator
|
public boolean should pause return get process state process state paused
|
returns true iff the process should be stopped
|
protected precondition make precondition final input port port int port index return make precondition port
|
subclasses might override this method in order to specify preconditions dependent
|
public void pass data through int from index for multi port pair mpp get managed pairs mpp single port deliver mpp multi ports get from index get any data or null
|
delivers all data from all managed input ports to the corresponding output port
|
public void reset for port pair pair get managed pairs if pair get input port is connected pair get output port deliver new ioobject collection ioobject else pair get output port clear port clear data
|
resets all output ports by delivering empty collection to all output ports for
|
public void start managed pairs add create port fix names single ports add observer observer false for ports m ports multi ports list ports add observer observer false
|
creates an initial port and starts to listen
|
public void start managed pairs add create port fix names in ports add observer observer false out ports add observer observer false
|
creates an initial port and starts to listen
|
public void start managed ports add create port fix names ports add observer observer false
|
creates an initial port and starts to listen
|
private void fire breakpoint event operator operator iocontainer io container int location for breakpoint listener l breakpoint listeners l breakpoint reached this operator io container location
|
fires the event that the process was paused
|
public void pass data through for port pair pair managed pairs ioobject data pair input port get any data or null pair output port deliver data
|
passes the actual data from the output ports to their connected input ports
|
public void pass clone through for port pair pair managed pairs ioobject data pair input port get any data or null if data null pair output port deliver data copy else pair output port deliver null
|
does the same as
|
public void deliver list extends ioobject io object list iterator port pair port iterator get managed pairs iterator for ioobject object io object list port pair pair port iterator next ioobject data pair input port get any data or null while data null data port iterator next input port get any data or null pair output port deliver object
|
this method is a convenient method for delivering several ioobjects
|
public operator chain get enclosing operator return enclosing operator
|
returns the operator that contains this process as a subprocess
|
public quick fix get quick fix example set meta data emd throws undefined parameter error return null
|
can be implemented by subclasses in order to specify quickfixes
|
public void make additional checks example set meta data emd
|
can be implemented by subclasses
|
public t get value if is known return get number else throw new illegal state exception value is currently not exactly known
|
returns the value
|
private void transform mdneighbourhood get enclosing operator get transformer transform meta data get enclosing operator transform meta data
|
transforms the meta data of the enclosing operator
|
public t get number return number
|
this returns the estimated number regardless of relation
|
protected quick fix create to binominal fix final string label name return new operator insertion quick fix insert nominal to binominal label name null label attributes new object 0 10 get input port override public operator create operator throws operator creation exception operator op operator service create operator nominal to binominal class if label name null op set parameter attribute subset selector parameter filter type attribute subset selector condition names attribute subset selector condition single op set parameter attribute subset selector parameter include special attributes true op set parameter single attribute filter parameter attribute label name return op
|
creates a quickfix to convert to nominal
|
protected quick fix create to numerical fix final string label name return new operator insertion quick fix insert nominal to numerical label name null label attributes new object 0 10 get input port override public operator create operator throws operator creation exception operator op operator service create operator nominal to numeric class if label name null op set parameter attribute subset selector parameter filter type attribute subset selector condition names attribute subset selector condition regular expression op set parameter attribute subset selector parameter include special attributes true op set parameter regexp attribute filter parameter regular expression label name return op
|
creates a quickfix to convert to numerical
|
public void auto wire compatibility level level boolean keep connections boolean recursive throws port exception if keep connections unwire recursive store all outputs scan them to find matching inputs linked list output port ready outputs new linked list output port add ready outputs ready outputs get inner sources list operator enabled new linked list operator for operator op get operators if op is enabled enabled add op auto wire level enabled ready outputs recursive true
|
connects the ports automatically in a first fit approach
|
public meta data transform generated meta data md md add to history output port return md
|
can be overridden to make additional transformations to the
|
public meta data transform passed through meta data md md add to history output port return md
|
can be overridden to make additional transformations to the meta data
|
public void add pass through condition pass through or generate rule condition condition pass through conditions add condition
|
this method allows to add additional conditions for passing through
|
public object read resolve throws object stream exception in default read object if generation history null generation history new linked list output port if annotations null annotations new annotations return this
|
restores an empty history
|
public boolean check process iocontainer input container root operator check all return true
|
checks for correct number of inner operators properties and io
|
public void add generate condition pass through or generate rule condition condition generate conditions add condition
|
this allows to add additional conditions for generation
|
public meta data modify meta data example set meta data unmodified meta data return unmodified meta data
|
modifies the standard meta data before it is passed to the output
|
public meta data modify meta data meta data unmodified meta data int output index return unmodified meta data
|
modifies the received meta data before it is passed to the output
|
public void merge set relation set relation relation this attributes relation this attributes relation merge relation
|
changes the knowledge about the attributes in this set
|
public quick fix get quick fix example set meta data emd throws undefined parameter error if required name provider null if required name provider instanceof parameter attribute name provider parameter attribute name provider provider parameter attribute name provider required name provider if provider get parameter keys length 1 provider get required attribute names length 1 return new attribute selection quick fix emd provider get parameter keys 0 provider get handler provider get required attribute names 0 required attributes type return null
|
can be implemented by subclasses in order to specify quickfixes
|
public void attributes are superset merge set relation set relation superset
|
declares that the attributes in this example set are a
|
public void attributes are subset merge set relation set relation subset
|
declares that the attributes in this example set are only a
|
public example set meta data modify example set example set meta data meta data throws undefined parameter error return meta data
|
this method might be used for convenience for slight modifications of the
|
public void set number of examples mdinteger num number of examples num
|
method for setting the number of examples
|
public void transform meta data for mdtransformation rule rule transformation rules try rule transform md catch exception e operator get logger log level warning error during meta data transformation e e operator add error new simple process setup error severity warning operator get port owner exception transforming metadata e to string
|
executes all rules added by
|
public void add pass through rule input port input output port output add rule new pass through rule input output false
|
convenience method to generate a
|
public void add generation rule output port output class extends ioobject clazz add rule new generate new mdrule output clazz
|
convenience method to generate a
|
public meta data modify meta data meta data unmodified meta data return unmodified meta data
|
modifies the standard meta data before it is passed to the output
|
private void tear down try root operator process finished catch operator exception e get logger log level warning problem during finishing the process e get message e clean up clear macros clear report streams clear storage clear unknown parameters result service close
|
this method is invoked after a process has finished
|
public void clear regular iterator attribute meta data iterator get all attributes iterator while iterator has next attribute meta data amd iterator next if amd is special iterator remove
|
this method removes all regular attributes from this example set meta data
|
public void free memory get inner sources free memory get inner sinks free memory
|
frees memory used by inner sinks
|
public void save throws ioexception if process location null this is process converted false process location store this null else throw new ioexception no process location is specified
|
saves the process to the process file
|
public void clear get all attributes clear
|
this method removes every attribute
|
protected example set meta data apply effects example set meta data emd input port input port return emd
|
this method must be implemented by subclasses in order to apply
|
public void save file file throws ioexception new file process location file store this null
|
saves the process to the given process file
|
public void read process reader in throws xmlexception ioexception read process in null
|
reads the process setup from the given input stream
|
public void move to index operator op int new index int old index operators index of op process process get enclosing operator get process if old index 1 operators remove op if process null int old index among enabled get enabled operators index of op process fire operator removed op old index old index among enabled if old index new index new index operators add new index op if process null process fire operator added op fire update update execution order
|
moves an operator to the given index
|
public void process started operator operator op for process listener listener get listener list copy listener process started operator this process op
|
counts the step and notifies all process listeners
|
public void process finished operator operator op for process listener listener get listener list copy listener process finished operator this process op
|
counts the step and notifies all process listeners
|
private void evaluate throws operator exception in extender pass clone through get subprocess 0 execute tools build averages performance port extender
|
applies the inner operator on a clone of the input
|
protected precondition get capability precondition return new capability precondition this example set input
|
this method can be overwritten in order to give a more senseful quickfix
|
public iocontainer get results return get subprocess 0 get inner sinks create iocontainer false
|
convenience backport method to get the results of a process
|
protected precondition get capability precondition return new capability precondition this training set input
|
this method can be overwritten in order to give a more senseful quickfix
|
protected void learn final model example set training set throws operator exception learn training set
|
applies the learner first encapsulated inner operator
|
public execution unit add subprocess int index execution unit copy subprocesses subprocesses new execution unit copy length 1 int j 0 for int i 0 i copy length i if i index j subprocesses j copy i subprocesses index create subprocess index fire update this return subprocesses index
|
creates a subprocess by making a callback to
|
protected void clear all inner sinks for execution unit subprocess subprocesses subprocess get inner sinks clear port clear data
|
clears all sinks of all inner processes
|
public attribute weights do work example set example set throws operator exception example set input receive example set check capabilities and produce errors if they are not fulfilled capability check check new capability check this tools boolean value parameter service get parameter value property rapidminer general capabilities warn true only warn for non sufficient capabilities check check learner capabilities this example set do work return weights output get data attribute weights class
|
helper method for anonymous instances of this class
|
public attribute weights do work model model example set example set throws operator exception model input receive model get example set input port receive example set do work return get weights output port get data attribute weights class
|
helper method for anonymous instantiations of this class
|
public repository location resolve repository location string loc throws user error malformed repository location exception if repository location is absolute loc repository location repository location new repository location loc repository location set accessor get repository accessor return repository location repository location repository location get repository location if repository location null repository location repository location2 new repository location repository location parent loc repository location2 set accessor get repository accessor return repository location2 else throw new user error null 317 loc
|
resolves a repository location relative to
|
public void evaluate list population example set original example set throws operator exception iterator i population iterator while i has next aggregation individual individual aggregation individual i next if individual get performance null example set example set individual create example set original example set all attributes generator if example set get attributes size 0 i remove else inner example set source deliver example set get subprocess 0 execute performance vector performance vector inner performance sink get data performance vector class individual set performance performance vector
|
creates example sets from all individuals and invoke the inner operators
|
private void mutate int individual double prob 1 0d individual length for int i 0 i individual length i if random next double prob individual i random next int in range 0 2
|
changes the individual each gene with probability 1 n
|
public string make relative repository location repository location loc repository location repository location get repository location if repository location null return loc make relative repository location parent else return loc get absolute location
|
turns loc into a repository location relative to
|
protected example set meta data modify inner output example set example set meta data meta data return meta data
|
subclasses might override this method in order to change the meta data delivered
|
private void evaluate population population example set original example set throws operator exception population evaluator evaluate population
|
evaluates all individuals in the population by applying the inner
|
public void set process converted boolean is process converted this is process converted is process converted
|
this sets whether the process is converted
|
protected performance vector evaluate example set based individual individual throws operator exception total evaluations if individual get performance null return individual get performance else evaluation counter attribute weighted example set clone individual get example set create clean clone inner example set source deliver clone get subprocess 0 execute performance vector performance vector inner performance sink get data performance vector class individual set performance performance vector return performance vector
|
evaluates the given individual
|
public string get import message return import message
|
returns some user readable messages generated during import by
|
public boolean has save destination return process location null
|
returns true iff either a file or a repository location is defined
|
public int get number of components return singular values length
|
this returns the total number of possible components
|
public model do work example set example set throws operator exception example set input receive example set do work return model output get data model class
|
helper method for anonymous operators
|
public void set process file file file set process location new file process location file
|
sets the process file
|
public boolean is adding label return is adding as label
|
this method returns whether this cluster model should add the assignment
|
public void set user description string description this user description description fire update this
|
sets the user specified comment for this operator
|
public boolean is removing unknown assignments return is removing unknown
|
this method returns whether examples which cant be assigned should be removed from
|
public void set preset measure distance measure me this preset measure me
|
overrides the measure specified by the operator parameters
|
public void remove remove and keep connections null
|
removes this operator from its parent
|
public void set enabled boolean enabled if this enabled enabled this enabled enabled fire update this
|
sets the activation mode
|
public void keep workbook open keep workbook open true
|
inform the excel reader to keep the workbook open due to performance
|
public void close workbook if workbook null workbook close
|
closes the the excel workbook
|
protected parameter type make file parameter type return file output port handler make file parameter type this get file parameter name new port provider override public port get port return file output port get file extensions
|
creates but does not add the file parameter named by
|
public int get index of attribute column attribute column column return attribute columns index of column
|
returns the index of the given
|
public int get index of active attribute column attribute column column return get active attribute columns index of column
|
returns the index of the given b activated b
|
public string get status return name apply count at last execution
|
returns human readable status information
|
public boolean is meta datafixed return meta data fixed
|
returns code true code when somebody called
|
public int get apply count return apply count at last execution
|
returns the number of times this operator was already applied
|
public void fix meta data definition meta data fixed true
|
method to declare the operators meta data as final
|
protected performance vector get performance return get performance true
|
applies the inner operator and employs the performance evaluator for
|
protected void pass results through inner sink extender pass data through
|
passes data from the inner sinks to the output ports
|
public void apply all process process map string string name translation iterator parameter value i parameter values iterator while i has next i next apply process name translation
|
applies all parameters in the set to their operators
|
public int get column count return attribute columns size
|
returns the number of all columns regardless a column is activated or not
|
private int get row count from guessing return row count from guessing
|
returns the number of row which are read during the value type guessing
|
public boolean check process branch operator string value throws operator exception class extends ioobject clazz operator get selected class if clazz null ioobject object operator get condition input or null clazz return object null return false
|
this method checks if the file with pathname value exists
|
protected void reset column names int i 0 for attribute column column get all attribute columns column set name get new generic column name i i
|
resets the column names to a generic column name given by the method
|
public int get dimensions return this values length
|
provides the integer number of dimensions of the object
|
public int check deprecations string deprecation string get operator description get deprecation info int deprecation count 0 if deprecation string null add error new simple process setup error severity warning port owner deprecation new object get operator description get name deprecation string deprecation count 1 return deprecation count
|
will count the number of deprecated operators i
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.