类 RBFKernel

所有已实现的接口:
Serializable, CapabilitiesHandler, OptionHandler, RevisionHandler
直接已知子类:
MIRBFKernel

public class RBFKernel extends CachedKernel
The RBF kernel. K(x, y) = e^-(gamma * <x-y, x-y>^2)

Valid options are:

 -D
  Enables debugging output (if available) to be printed.
  (default: off)
 -no-checks
  Turns off all checks - use with caution!
  (default: checks on)
 -C <num>
  The size of the cache (a prime number), 0 for full cache and 
  -1 to turn it off.
  (default: 250007)
 -G <num>
  The Gamma parameter.
  (default: 0.01)
版本:
$Revision: 5518 $
作者:
Eibe Frank (eibe@cs.waikato.ac.nz), Shane Legg (shane@intelligenesis.net) (sparse vector code), Stuart Inglis (stuart@reeltwo.com) (sparse vector code), J. Lindgren (jtlindgr{at}cs.helsinki.fi) (RBF kernel)
另请参阅:
  • 构造器详细资料

    • RBFKernel

      public RBFKernel()
      default constructor - does nothing.
    • RBFKernel

      public RBFKernel(Instances data, int cacheSize, double gamma) throws Exception
      Constructor. Initializes m_kernelPrecalc[].
      参数:
      data - the data to use
      cacheSize - the size of the cache
      gamma - the bandwidth
      抛出:
      Exception - if something goes wrong
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing the kernel
      指定者:
      globalInfo 在类中 Kernel
      返回:
      a description suitable for displaying in the explorer/experimenter gui
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 CachedKernel
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.

      Valid options are:

       -D
        Enables debugging output (if available) to be printed.
        (default: off)
       -no-checks
        Turns off all checks - use with caution!
        (default: checks on)
       -C <num>
        The size of the cache (a prime number), 0 for full cache and 
        -1 to turn it off.
        (default: 250007)
       -G <num>
        The Gamma parameter.
        (default: 0.01)
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 CachedKernel
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current settings of the Kernel.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 CachedKernel
      返回:
      an array of strings suitable for passing to setOptions
    • setGamma

      public void setGamma(double value)
      Sets the gamma value.
      参数:
      value - the gamma value
    • getGamma

      public double getGamma()
      Gets the gamma value.
      返回:
      the gamma value
    • gammaTipText

      public String gammaTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • getCapabilities

      public Capabilities getCapabilities()
      Returns the Capabilities of this kernel.
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      覆盖:
      getCapabilities 在类中 Kernel
      返回:
      the capabilities of this object
      另请参阅:
    • buildKernel

      public void buildKernel(Instances data) throws Exception
      builds the kernel with the given data. Initializes the kernel cache. The actual size of the cache in bytes is (64 * cacheSize).
      覆盖:
      buildKernel 在类中 CachedKernel
      参数:
      data - the data to base the kernel on
      抛出:
      Exception - if something goes wrong
    • toString

      public String toString()
      returns a string representation for the Kernel
      覆盖:
      toString 在类中 Object
      返回:
      a string representaiton of the kernel
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 Kernel
      返回:
      the revision