Documentation
Classes
InconsistentVersionWarning

InconsistentVersionWarning

Warning raised when an estimator is unpickled with a inconsistent version.

Python Reference (opens in a new tab)

Constructors

constructor()

Signature

new InconsistentVersionWarning(opts?: object): InconsistentVersionWarning;

Parameters

NameTypeDescription
opts?object-
opts.current_sklearn_version?stringCurrent scikit-learn version.
opts.estimator_name?stringEstimator name.
opts.original_sklearn_version?stringOriginal scikit-learn version.

Returns

InconsistentVersionWarning

Defined in: generated/exceptions/InconsistentVersionWarning.ts:21 (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/InconsistentVersionWarning.ts:102 (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/InconsistentVersionWarning.ts:54 (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/InconsistentVersionWarning.ts:119 (opens in a new tab)

Properties

_isDisposed

boolean = false

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

_isInitialized

boolean = false

Defined in: generated/exceptions/InconsistentVersionWarning.ts:18 (opens in a new tab)

_py

PythonBridge

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

id

string

Defined in: generated/exceptions/InconsistentVersionWarning.ts:14 (opens in a new tab)

opts

any

Defined in: generated/exceptions/InconsistentVersionWarning.ts:15 (opens in a new tab)

Accessors

args

Signature

args(): Promise<any>;

Returns

Promise<any>

Defined in: generated/exceptions/InconsistentVersionWarning.ts:146 (opens in a new tab)

py

Signature

py(): PythonBridge;

Returns

PythonBridge

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

Signature

py(pythonBridge: PythonBridge): void;

Parameters

NameType
pythonBridgePythonBridge

Returns

void

Defined in: generated/exceptions/InconsistentVersionWarning.ts:45 (opens in a new tab)