Documentation
Classes
DataDimensionalityWarning

DataDimensionalityWarning

Custom warning to notify potential issues with data dimensionality.

For example, in random projection, this warning is raised when the number of components, which quantifies the dimensionality of the target projection space, is higher than the number of features, which quantifies the dimensionality of the original source space, to imply that the dimensionality of the problem will not be reduced.

Python Reference (opens in a new tab)

Constructors

constructor()

Signature

new DataDimensionalityWarning(opts?: object): DataDimensionalityWarning;

Parameters

NameType
opts?object
opts.args?any

Returns

DataDimensionalityWarning

Defined in: generated/exceptions/DataDimensionalityWarning.ts:23 (opens in a new tab)

Properties

_isDisposed

boolean = false

Defined in: generated/exceptions/DataDimensionalityWarning.ts:21 (opens in a new tab)

_isInitialized

boolean = false

Defined in: generated/exceptions/DataDimensionalityWarning.ts:20 (opens in a new tab)

_py

PythonBridge

Defined in: generated/exceptions/DataDimensionalityWarning.ts:19 (opens in a new tab)

id

string

Defined in: generated/exceptions/DataDimensionalityWarning.ts:16 (opens in a new tab)

opts

any

Defined in: generated/exceptions/DataDimensionalityWarning.ts:17 (opens in a new tab)

Accessors

py

Signature

py(): PythonBridge;

Returns

PythonBridge

Defined in: generated/exceptions/DataDimensionalityWarning.ts:28 (opens in a new tab)

Signature

py(pythonBridge: PythonBridge): void;

Parameters

NameType
pythonBridgePythonBridge

Returns

void

Defined in: generated/exceptions/DataDimensionalityWarning.ts:32 (opens in a new tab)

Methods

dispose()

Disposes of the underlying Python resources.

Once dispose() is called, the instance is no longer usable.

Signature

dispose(): Promise<void>;

Returns

Promise<void>

Defined in: generated/exceptions/DataDimensionalityWarning.ts:85 (opens in a new tab)

init()

Initializes the underlying Python resources.

This instance is not usable until the Promise returned by init() resolves.

Signature

init(py: PythonBridge): Promise<void>;

Parameters

NameType
pyPythonBridge

Returns

Promise<void>

Defined in: generated/exceptions/DataDimensionalityWarning.ts:41 (opens in a new tab)

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

Signature

with_traceback(opts: object): Promise<any>;

Parameters

NameType
optsobject

Returns

Promise<any>

Defined in: generated/exceptions/DataDimensionalityWarning.ts:102 (opens in a new tab)