Class MIPolyKernel

  • All Implemented Interfaces:
    java.io.Serializable, CapabilitiesHandler, MultiInstanceCapabilitiesHandler, OptionHandler, RevisionHandler

    public class MIPolyKernel
    extends PolyKernel
    implements MultiInstanceCapabilitiesHandler
    The polynomial kernel : K(x, y) = <x, y>^p or K(x, y) = (<x, y>+1)^p

    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)
     -E <num>
      The Exponent to use.
      (default: 1.0)
     -L
      Use lower-order terms.
      (default: no)
    Version:
    $Revision: 10036 $
    Author:
    Eibe Frank (eibe@cs.waikato.ac.nz), Shane Legg (shane@intelligenesis.net) (sparse vector code), Stuart Inglis (stuart@reeltwo.com) (sparse vector code), Lin Dong (ld21@cs.waikato.ac.nz) (MIkernel)
    See Also:
    Serialized Form
    • Constructor Detail

      • MIPolyKernel

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

        public MIPolyKernel​(Instances data,
                            int cacheSize,
                            double exponent,
                            boolean lowerOrder)
                     throws java.lang.Exception
        Creates a new MIPolyKernel instance.
        Parameters:
        data - the training dataset used.
        cacheSize - the size of the cache (a prime number)
        exponent - the exponent to use
        lowerOrder - whether to use lower-order terms
        Throws:
        java.lang.Exception - if something goes wrong