Skip to Content
Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング
book

Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング

by Yves Hilpisch, 村上 振一郎
April 2022
Intermediate to advanced
368 pages
6h 20m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング

2章Pythonインフラストラクチャ

家を建つるに木配りすること。

大工の嗜み、よく切るる道具を持ち、すきすきに研ぐこと肝要なり。

—宮本武蔵●五輪書、地之巻から

初心者でも、Pythonを使うのは簡単なはずです。豊富なライブラリやパッケージも簡単にインストールできます。ただし、実装が1つだけではないことが問題です。CPython、Jython、IronPython、PyPyと各種あります。さらに、Python 2.7と3.xの分断があります。この章では、プログラミング言語Pythonの最も一般的なバージョンであるCPython、そしてここでは、バージョン3.8を中心に説明します。

CPython 3.8(今後は単に「Python」と呼びます)に焦点を当てた場合でも、次のような理由から、環境を整備するのは簡単ではありません。

  • インタープリタ(標準のCPythonのインストール)には(例えば基本的な数学関数を含む)標準ライブラリのみ付属しています。
  • サードパーティのパッケージは非常に数多くあり、別途インストールする必要があります。
  • 非標準パッケージのコンパイル/ビルドはOS依存性があり自分で行うのは難しいです。
  • 依存性やバージョン間の互換性の維持(メンテナンス)は面倒で時間がかかります。
  • パッケージによっては更新やアップグレードに際して、他の多くのパッケージを再コンパイルする必要が生じます。
  • パッケージの変更や置き換えにより、他の箇所で問題が生じることがあります。
  • Pythonのバージョン変更をすぐに行わずに、後にある程度のバージョンを飛び越えてバージョン変更を行う場合、これまでに挙げた問題すべてが非常に厄介になる場合もあります。

幸い、役に立つツールや戦略があります。本章では、環境整備に役立つ以下のものについて説明します。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎

Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎

Andreas C. Muller, Sarah Guido, 中田 秀基
スクラム実践者が知るべき97のこと

スクラム実践者が知るべき97のこと

Gunther Verheyen, 吉羽 龍太郎, 原田 騎郎, 永瀬 美穂
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873119793Other