input
stringlengths
10
828
output
stringlengths
5
107
public calendar get due date return this due date
returns the due date of the item
public int compare to lender lq return this get lender name compare to lq get lender name
compares the this lender query object to another to determine order
public string get due date to string simple date format date format new simple date format mm dd yyyy locale us return date format format this due date get time
returns the due date of the item as a string
public void set wakeup value double wakeup value this wakeup value wakeup value
set wakeup value
public string to string return this lender name has this item list size items checked out
returns the lender name and number of items checked out as a string
public int compare to borrowed item o if this due date compare to o due date 0 return this item name compare to o item name else return this due date compare to o due date
compares this objects date to another objects date
public double get wakeup value return wakeup value
get wakeup value
public int hash code int hash 7 hash 31 hash this item name hash code hash 31 hash this due date hash code return hash
calculates a hash value for this object
private int read16 bit binary value throws ioexception int byte1 in read if byte1 0 return 1 int byte2 in read if byte2 0 return 1 return byte1 8 byte2
read a 16 bit binary value in network big endian order
public string get count string map string object parameters string builder statement builder new string builder boolean distinct select statement to upper case contains distinct if distinct statement builder append select count from statement builder append select statement else statement builder append select count statement builder append from statement statement builder append filter where statement parameters statement builder append having statement statement builder append group statement if distinct statement builder append return statement builder to string
the method will return the count query string using the query string
private string sort by list order orders query helper query helper string builder order builder new string builder if orders is empty for order order orders if order builder length 0 order builder append order by else order builder append string sort column order get column if sort alias map contains key sort column order builder append sort alias map get sort column else order builder append this get alias query helper order builder append order builder append sort column order builder append order builder append order get direction return order builder to string else return order statement
get the order string by the order list
private boolean children have children tree node iterator edge iterator node child iterator while iterator has next if iterator next get child is leaf return true return false
checks if the children of the given node have children
public void select additional subset int index partition select subset index
adds the given subset
public void select single subset int index partition clear selection partition select subset index
selects exactly one subset
public void select all subsets but int index partition clear selection for int i 0 i partition get number of subsets i if i index partition select subset i
selects all but one subset
public void invert selection partition invert selection
inverts the current selection
public void clear selection partition clear selection
clears the current selection
public int get number of subsets return partition get number of subsets
returns the number of subsets
public example get example int index int actual index partition map index index return this parent get example actual index
searches i th example in the currently selected partition
public int get actual parent index int index return partition map index index
returns the index of the example in the parent example set
public double get entropy double label weights double total weight double entropy 0 for int i 0 i label weights length i if label weights i 0 double proportion label weights i total weight entropy math log proportion log factor proportion return entropy
calculates entropy as an impurity measure of a split
protected double get split info double partition weights double total weight double split info 0 for double partition weight partition weights if partition weight 0 double partition proportion partition weight total weight split info partition proportion math log partition proportion log factor return split info
calculates split info
private double get information gain splitted example set example set double total weights calculator get label weights example set double total weight calculator get total weight total weights double total entropy get entropy total weights total weight double gain 0 for int i 0 i example set get number of subsets i example set select single subset i double partition weights calculator get label weights example set double partition weight calculator get total weight partition weights gain get entropy partition weights partition weight partition weight total weight example set select all subsets return total entropy gain
calculates information gain as an impurity measure of a split
private double get gini index double label weights double total weight double sum 0 0d for int i 0 i label weights length i double frequency label weights i total weight sum frequency frequency return 1 0d sum
calculates gini index as an impurity measure of a split
private partition get partition linked list string combination int elements iterator example reader current split iterator elements new int current split size int i 0 while reader has next example example reader next string current value example get value as string current attribute if combination contains current value elements i 1 i partition partition new partition elements 2 return partition
gets the partition generated from combination
private void split splitted example set current split attribute attribute current split set partition all partitions for attribute remove first current split set attribute attribute current split set split value split value list remove first double value
creates binary numerical splitting candidate for evaluation
public double get probability return prob
gets the probability
public void enter branch this tree depth 1 this number of nodes 1 if tree depth max tree depth this max tree depth tree depth
enter branch event
public void exit branch tree tree this tree depth 1 if tree is leaf this number of leaves 1
exit branch event
public void analyse final tree tree tree long size of dataset tree get training set size double weighted sum calculate weigted average tree depth tree 1 size of dataset this weighted average tree depth weighted sum 1
analyze final tree
private double calculate weigted average tree depth tree node int depth long size of dataset if node is leaf long size of leaf node get frequency sum double weight double size of leaf size of dataset double leaf weighted depth weight depth return leaf weighted depth else double sum of weighted depth 0 iterator edge i node child iterator while i has next tree next node i next get child sum of weighted depth calculate weigted average tree depth next node depth 1 size of dataset return sum of weighted depth
calculate weigted average tree depth
private tree prune tree tree root example set example set tree tree root if components prune size 0 for prunning prune tree components prune tree prune tree prune root example set return tree
calls all of the prune tree components selected by the user for execution
public int get tree depth return tree depth
gets the tree depth
public double get total weight double weights double sum 0 0d for double w weights sum w return sum
returns the sum of the given weights
public int get max tree depth return max tree depth
gets the max tree depth
public double get weighted average tree depth return weighted average tree depth
gets the weighted average tree depth
public combination generator int n int r if r n throw new illegal argument exception if n 1 throw new illegal argument exception this n n this r r a new int r big integer n fact get factorial n big integer r fact get factorial r big integer nminusr fact get factorial n r total n fact divide r fact multiply nminusr fact reset
instantiates a new combination generator
public int get number of nodes return number of nodes
gets the number of nodes
public int get number of leaves return number of leaves
gets the number of leaves
public date get elapsed time long start time system current time millis long current time system current time millis long elapsed current time start time return new date elapsed
gets the elapsed time
public string get values string rn integer to string tree state run number string time df format get elapsed time string depth integer to string get tree depth string max depth integer to string get max tree depth string w avg tree depth double to string get weighted average tree depth string nodes integer to string get number of nodes string leaves integer to string get number of leaves return rn time depth max depth w avg tree depth nodes leaves
gets the values formated as a string separated by commas
private void write to file string entry try output write entry output flush catch ioexception ioe system out print error in log writing system out println ioe get message
write to file
public void add log log int size child logs size 1 log id id size child logs add log
add child log to current log
protected string get output header return get output header null
get common output header
protected string get output header string category name string output id delimiter this get class get simple name delimiter if category name null output category name delimiter return output
get common output header
public int get max number of inner operators return 3
returns the maximum number of innner operators
public int get min number of inner operators return 3
returns the minimum number of innner operators
protected execution unit get learner return get subprocess 0
returns the first encapsulated inner operator or operator chain i
protected void execute evaluator throws operator exception get subprocess 2 execute
returns the second encapsulated inner operator or operator chain i
protected performance vector evaluate example set test set throws operator exception learn result inner model source get data if learn result null throw new runtime exception wrong use of validation chain evaluate example set no preceding invocation of learn example set performance vector result evaluate test set learn result learn result null return result
applies the applier and evaluator second encapsulated inner operator
protected void execute learner throws operator exception get subprocess 0 execute
returns the first subprocess or operator chain i
protected void execute evaluator throws operator exception get subprocess 1 execute
returns the second encapsulated inner operator or operator chain i
private void fill panels navigator load process get subproblems refresh tree
fills required data upon startup of the panel
public void set frame centered toolkit t toolkit get default toolkit dimension screen size t get screen size int width screen size width int height screen size height int x int width 2 this get size get width 2 int y int height 2 this get size get height 2 this set location new point x y
this method position frame to the center of the screen
private void init components javax swing group layout layout new javax swing group layout this this set layout layout layout set horizontal group layout create parallel group javax swing group layout alignment leading add gap 0 315 short max value layout set vertical group layout create parallel group javax swing group layout alignment leading add gap 0 201 short max value editor fold gen end init components
this method is called from within the constructor to initialize the form
public icon get icon return m icon
gets the icon
public icon get expanded icon return m expanded icon null m expanded icon m icon
gets the expanded icon
public object get object return m data
gets the object
private void list key pressed key event e if key event vk f1 e get key code class selected classes get selected classes for class clazz selected classes class summary dialog class summary dialog new class summary dialog clazz owner class summary dialog set location relative to null class summary dialog set modality type dialog modality type modeless class summary dialog set visible true
if f1 key is pressed show class summary dialog
private void write to file string entry if logging is enabled try output write entry output flush catch ioexception ioe system out print error in log writing system out println ioe get message
actual writing to file
public void log boolean append new line before string entry boolean append new line after if append new line before write to file new line write to file entry if append new line after write to file new line
write entry to log
public void log boolean append new line before string entry log append new line before entry false
write entry to log
public void log string entry boolean append new line after log false entry append new line after
write entry to log
public void append new line log new line
append new line to log
public void set list of parameters list subproblem parameter list of parameters this list of parameters list of parameters
this method sets list of
public string get name of implementation class return name of implementation class
this method returns name of implementation class
public void log long entry log string value of entry
write entry to log
public void set name of implementation class string name of implementation class this name of implementation class name of implementation class
this method sets name of implementation class
public void log double entry log string value of entry
write entry to log
public void log string entry log false entry false
write entry to log
public void log string entries string string to log new string for string entry entries string to log entry separator log string to log
write collection of entries to one line in log
public void log array list entries string string to log new string for object entry entries string to log string value of entry to string separator log string to log
write collection of entries to one line in log
public int get cluster id return cluster id
get the id of the cluster
public int get number of examples return example ids size
returns the number of examples in this cluster
public int get optimization step number return optimization step number
gets the tree depth
public int get run number return run number
gets the max tree depth
public performance vector get estimated performance throws operator exception throw new user error this 912 get name estimation of performance not supported
the default implementation throws an exception
public technical information get technical information technical information result result new technical information type book result set value field author f lix garc a l pez result set value field month october result set value field year 2004 result set value field title solving feature subset selection problem by a parallel scatter search result set value field publisher elsevier result set value field language english return result
returns an instance of a technical information object containing
protected void update object names if m object names null m object names get classes from properties if m object null string class name m object get class get name string root get root from class class name new hierarchy property parser get seperator hierarchy property parser hpp hierarchy property parser m object names get root if hpp null if hpp contains class name hpp add class name
updates the list of selectable object names adding any new names to the
public enumeration enumerate requests vector new vector new vector 0 if m master plot null new vector add element show chart new vector add element clear all plots return new vector elements
describe code enumerate requests code method here
public void load binary string file name throws exception if file name ends with kf throw new exception file must be a binary flow kf input stream is new file input stream file name object input stream ois new object input stream is m beans vector ois read object don t need the graphical connections ois close environment add variable internal knowledgeflow directory new file file name get parent
load a binary serialized knowledge flow
public void load xml string file name throws exception if file name ends with kfml throw new exception file must be an xml flow kfml xmlbeans xml new xmlbeans null null vector v vector xml read new file file name m beans vector v get xmlbeans index beaninstances environment add variable internal knowledgeflow directory new file file name get parent
load an xml serialized knowledge flow
public boolean is busy if m executor pool null m executor pool get queue size 0 m executor pool get active count 0 return false system err println is busy q m executor pool get queue size a m executor pool get active count return true
returns true if
public string get revision return revision utils extract revision 4567
returns the revision string
public string get revision return revision utils extract revision 4553
returns the revision string
public boolean is empty return m root get child count 0
returns true if this collection contains no elements
public void rename attribute value attribute att string val string name int v att index of value val if v 1 throw new illegal argument exception val not found rename attribute value att index v name
renames the value of a nominal or string attribute value
public string get revision return revision utils extract revision 1 77
returns the revision string
protected void initialize super initialize log file m log file get log file try to remove file try if m log file exists m log file delete catch exception e e print stack trace the line feed m line feed system get property line separator
initializes the logger
protected void append string s buffered writer writer append output to file try writer new buffered writer new file writer m log file true writer write s writer flush writer close catch exception e ignored
appends the given string to the log file without new line
public void set debug boolean debug m debug debug disable silent mode if necessary if get debug set silent false
set debugging mode
protected string default values list return 1 10
returns the default values list
protected void init vars instances data super init vars data m kernel precalc new double data num instances
initializes variables etc
public string get revision return revision utils extract revision 4852
returns the revision string
public string get revision return revision utils extract revision 4842
returns the revision string
public int get knn return m knnnum
return the knn number to be the classifier
public capabilities get capabilities capabilities result m ibk get capabilities attributes result enable all attributes result enable capability missing values class result enable capability nominal class return result
returns the capabilities of this filter
public boolean set input format instances instance info throws exception super set input format instance info set output format instance info m sub sample new instance m sample size m current inst 0 m random new random m random seed return true
sets the format of the input instances
protected void create subsample
creates a subsample of the current set of input instances
public void init string enc throws file not found exception ioexception input stream in i18 n class get resource as stream i18n enc properties properties new property resource bundle in
init function called by constructor