Когда я бежал:
Код: Выделить всё
import bayesnf
Код: Выделить всё
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[7], line 1
----> 1 import bayesnf
File ~\pyenv\lib\site-packages\bayesnf\__init__.py:21
17 # A new PyPI release will be pushed every time __version__ is increased.
18 # When changing this, also update the CHANGELOG.md
19 __version__ = '0.1.3'
---> 21 from .spatiotemporal import BayesianNeuralFieldMAP
22 from .spatiotemporal import BayesianNeuralFieldMLE
23 from .spatiotemporal import BayesianNeuralFieldVI
File ~\pyenv\lib\site-packages\bayesnf\spatiotemporal.py:19
15 """API for Bayesian Neural Field estimators."""
17 from collections.abc import Sequence
---> 19 import jax
20 import jax.numpy as jnp
21 import numpy as np
File ~\pyenv\lib\site-packages\jax\__init__.py:25
22 from jax.version import __version_info__ as __version_info__
24 # Set Cloud TPU env vars if necessary before transitively loading C++ backend
---> 25 from jax._src.cloud_tpu_init import cloud_tpu_init as _cloud_tpu_init
26 try:
27 _cloud_tpu_init()
File ~\pyenv\lib\site-packages\jax\_src\cloud_tpu_init.py:17
15 import os
16 from jax import version
---> 17 from jax._src import config
18 from jax._src import hardware_utils
20 running_in_cloud_tpu_vm: bool = False
File ~\pyenv\lib\site-packages\jax\_src\config.py:27
24 import threading
25 from typing import Any, Generic, NamedTuple, NoReturn, Protocol, TypeVar, cast
---> 27 from jax._src import lib
28 from jax._src.lib import jax_jit
29 from jax._src.lib import transfer_guard_lib
File ~\pyenv\lib\site-packages\jax\_src\lib\__init__.py:76
71 return _jaxlib_version
74 version_str = jaxlib.version.__version__
75 version = check_jaxlib_version(
---> 76 jax_version=jax.version.__version__,
77 jaxlib_version=jaxlib.version.__version__,
78 minimum_jaxlib_version=jax.version._minimum_jaxlib_version)
80 # Before importing any C compiled modules from jaxlib, first import the CPU
81 # feature guard module to verify that jaxlib was compiled in a way that only
82 # uses instructions that are present on this machine.
83 import jaxlib.cpu_feature_guard as cpu_feature_guard
AttributeError: partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)
На странице GitHub написано:
Система построена на платформе машинного обучения JAX.
Обычное время установки — 1 минута. Это программное обеспечение протестировано на Python 3.10 со стандартной установкой Debian GNU/Linux. Масштабные эксперименты в скриптах/ проводились с использованием ускорителей TPU v3-8. Для локального запуска BayesNF на средних и крупных данных требуется как минимум графический процессор.
Подробнее здесь: https://stackoverflow.com/questions/789 ... s-with-cpu