RationalKernel

class otsvm.RationalKernel(*args)

Polynomial kernel.

Methods

__call__(x1, x2)

Call self as a function.

getClassName()

Accessor to the object's name.

getConstant()

Constant term accessor.

getId()

Accessor to the object's id.

getName()

Accessor to the object's name.

getParameter()

Parameter value accessor.

getParameterDescription()

Parameter description accessor.

getShadowedId()

Accessor to the object's shadowed id.

getVisibility()

Accessor to the object's visibility state.

hasName()

Test if the object is named.

hasVisibleName()

Test if the object has a distinguishable name.

partialGradient(x1, x2)

Gradient wrt one variable.

partialHessian(x1, x2)

Gradient wrt one variable.

setConstant(constant)

Constant term accessor.

setName(name)

Accessor to the object's name.

setParameter(parameter)

Parameter value accessor.

setShadowedId(id)

Accessor to the object's shadowed id.

setVisibility(visible)

Accessor to the object's visibility state.

__init__(*args)
getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getConstant()

Constant term accessor.

Parameters:
linearfloat

Linear term

getId()

Accessor to the object’s id.

Returns:
idint

Internal unique identifier.

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

getParameter()

Parameter value accessor.

Returns:
parameteropenturns.Point

Current parameter values

getParameterDescription()

Parameter description accessor.

Returns:
descriptionopenturns.Description

Parameter names

getShadowedId()

Accessor to the object’s shadowed id.

Returns:
idint

Internal unique identifier.

getVisibility()

Accessor to the object’s visibility state.

Returns:
visiblebool

Visibility flag.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

hasVisibleName()

Test if the object has a distinguishable name.

Returns:
hasVisibleNamebool

True if the name is not empty and not the default one.

partialGradient(x1, x2)

Gradient wrt one variable.

Returns:
gradientopenturns.Point

Gradient value

partialHessian(x1, x2)

Gradient wrt one variable.

Returns:
hessianopenturns.SymmetricMatrix

Hessian value

setConstant(constant)

Constant term accessor.

Parameters:
linearfloat

Linear term

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

setParameter(parameter)

Parameter value accessor.

Parameters:
parameteropenturns.Point

Current parameter values

setShadowedId(id)

Accessor to the object’s shadowed id.

Parameters:
idint

Internal unique identifier.

setVisibility(visible)

Accessor to the object’s visibility state.

Parameters:
visiblebool

Visibility flag.