qiskit.finance.data_providers.BaseDataProvider¶
-
class
BaseDataProvider
[código fonte]¶ The abstract base class for data_provider modules within Qiskit’s finance module.
To create add-on data_provider module subclass the BaseDataProvider class in this module. Doing so requires that the required driver interface is implemented.
To use the subclasses, please see https://github.com/Qiskit/qiskit-tutorials/blob/master/legacy_tutorials/aqua/finance/data_providers/time_series.ipynb
-
abstract
__init__
()[código fonte]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
()Initialize self.
Returns random coordinates for visualisation purposes.
Returns the covariance matrix.
Returns a vector containing the mean value of each asset.
Returns a vector containing the mean value of each asset.
Returns a vector containing the mean value of each asset.
Returns time-series similarity matrix computed using dynamic time warping.
run
()Loads data.
-
get_coordinates
()[código fonte]¶ Returns random coordinates for visualisation purposes.
- Tipo de retorno
Tuple
[float
,float
]
-
get_covariance_matrix
()[código fonte]¶ Returns the covariance matrix.
- Tipo de retorno
ndarray
- Retorna
an asset-to-asset covariance matrix.
- Levanta
QiskitFinanceError – no data loaded
-
get_mean_vector
()[código fonte]¶ Returns a vector containing the mean value of each asset.
- Tipo de retorno
ndarray
- Retorna
a per-asset mean vector.
- Levanta
QiskitFinanceError – no data loaded
-
get_period_return_covariance_matrix
()[código fonte]¶ Returns a vector containing the mean value of each asset.
- Tipo de retorno
ndarray
- Retorna
a per-asset mean vector.
- Levanta
QiskitFinanceError – no data loaded
-
get_period_return_mean_vector
()[código fonte]¶ Returns a vector containing the mean value of each asset.
- Tipo de retorno
ndarray
- Retorna
a per-asset mean vector.
- Levanta
QiskitFinanceError – no data loaded
-
get_similarity_matrix
()[código fonte]¶ Returns time-series similarity matrix computed using dynamic time warping.
- Tipo de retorno
ndarray
- Retorna
an asset-to-asset similarity matrix.
- Levanta
QiskitFinanceError – no data loaded
-
abstract
run
()[código fonte]¶ Loads data.
- Tipo de retorno
None
-
abstract