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
Name | Type | Description |
---|---|---|
opts? | object | - |
opts.current_sklearn_version? | string | Current scikit-learn version. |
opts.estimator_name? | string | Estimator name. |
opts.original_sklearn_version? | string | Original scikit-learn version. |
Returns
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
Name | Type |
---|---|
py | PythonBridge |
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
Name | Type |
---|---|
opts | object |
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
Name | Type |
---|---|
pythonBridge | PythonBridge |
Returns
void
Defined in: generated/exceptions/InconsistentVersionWarning.ts:45 (opens in a new tab)