ryoozaki / npbdaa Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Eigen のリポジトリは bitbucket から gitlab に移行したようです。(参照: spack/spack#13890)
したがって https://github.com/RyoOzaki/pyhsmm の setup.py
も deprecate しています。Eigenのダウンロードのスクリプトをフォーク元と同様、以下のように変更すればエラーは解消します。加えて、import に requests を追加する必要もあります。
# download Eigen if we don't have it in deps
eigenurl = 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz'
eigentarpath = os.path.join('deps', 'Eigen.tar.gz')
eigenpath = os.path.join('deps', 'Eigen')
if not os.path.exists(eigenpath):
print('Downloading Eigen...')
r = requests.get(eigenurl)
with open(eigentarpath, 'wb') as f:
f.write(r.content)
with tarfile.open(eigentarpath, 'r') as tar:
tar.extractall('deps')
thedir = glob(os.path.join('deps', 'eigen-*'))[0]
shutil.move(os.path.join(thedir, 'Eigen'), eigenpath)
print('...done!')
ですが、もしソース元でフォークのモチベーションである "But, the master repository's codes include some bugs in cython codes." が解消されているならば、 mattjj/pyhsmm を利用させるか、"some bugs in cython codes" のプルリクエストを mattjj/pyhsmm に送った方が、今後のメンテナンスコストが下がるように思えます。
先日は Issue の解決ありがとうございました。RyoOzaki/pyhsmm の issue 機能が有効化されていない、また RyoOzaki/npbdaa のセットアップ 中のエラーであるためこちらに失礼します。
setup.py
の実行でrequestsライブラリが必要ですが, READMEに載っていません.
事前に
pip install requests
でインストールを行います.
There is a NameError
in summary_and_plot.py
(line 100). Just importing the module may resolve this issue.
$ python summary_and_plot.py
Traceback (most recent call last):
File "summary_and_plot.py", line 100, in <module>
Path("figures").mkdir(exist_ok=True)
NameError: name 'Path' is not defined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.