Xplain.Db.VariableGroup

Xplain.Db.VariableGroup()

This class represents a Variable Group of a Xplain predictive model. Provides methods to get data from the variable group.

findVariable

findVariable(name)

Finds a variable within this variable group.

Parameters

name (string) – The name of the variable to find.

Returns

{object} A variable as object or false

getName

getName()

Returns the name of this variable group.

Returns

{string} the name of this variable group

getPredictiveModel

getPredictiveModel()

Returns the predictive model to which this variable group belongs.

Returns

{Xplain.Db.Session} the predictive model to which this variable group belongs.

getRawData

getRawData()

Returns this variable group’s data as it has been returned by the backend, i.e. “raw”.

Returns

{Object} This variable group’s data as it has been returned by the backend

getSession

getSession()

Returns the session to which this variable group belongs.

Returns

{Xplain.Db.Session} the session to which this variable group belongs.

getVariables

getVariables()

returns an array of all variables which belong to this variable group.

Returns

{array} array of all variables belonging to this variable group