LinearKernel

class otsvm.LinearKernel(*args)

Linear kernel.

Methods

getClassName()

Accessor to the object's name.

getName()

Accessor to the object's name.

getParameter()

Parameter value accessor.

getParameterDescription()

Parameter description accessor.

hasName()

Test if the object is named.

partialGradient(x1, x2)

Gradient wrt one variable.

partialHessian(x1, x2)

Gradient wrt one variable.

setName(name)

Accessor to the object's name.

setParameter(parameter)

Parameter value accessor.

__init__(*args)
getClassName()

Accessor to the object’s name.

Returns:
class_namestr

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

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

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

partialGradient(x1, x2)

Gradient wrt one variable.

Returns:
gradientopenturns.Point

Gradient value

partialHessian(x1, x2)

Gradient wrt one variable.

Returns:
hessianopenturns.SymmetricMatrix

Hessian value

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