Skip to Content
PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術
book

PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術

by Prateek Joshi, 相川 愛三
March 2019
Intermediate to advanced
424 pages
5h 18m
Japanese
O'Reilly Japan, Inc.
Content preview from PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術

6章論理プログラミング

本章では次の事柄について学びます。

  • 論理プログラミング
  • 論理プログラミングの構成要素
  • 論理プログラミングによる問題解法
  • 論理プログラミング用パッケージのインストール
  • 数式の推定
  • 素数判定
  • 家系図の解析
  • 地理の解析
  • パズルの解法

6.1 論理プログラミングとは?

論理プログラミングは、プログラミングのパラダイム(プログラムの構成や方法についての考え方の枠組み)のひとつです。論理プログラミングがどのように構成され人工知能にどのように関係しているのかを説明する前に、プログラミングのパラダイムについて示します。

パラダイムの考え方は、プログラミング言語の分類のために生まれたもので、プログラムがコードを通じて問題を解決する方法を示すものです。プログラミングのパラダイムの中には、結果を達成するのに使われる命令の関連付けや並べ方に主に関係するものがあります。ほかに、コードの構成方法に関係するパラダイムもあります。

主要なプログラミングパラダイムを以下に示します。

命令型
プログラムの状態を変更する文を用いるもので、副作用を許容します。
関数型
計算を数学的な関数を評価することとみなし、状態の変化や変更可能なデータを許容しません。
宣言型
「どのように実行するのか」ではなく「何を実行したいのか」を記述することによってプログラムを書く方法です。制御の流れを明示的に記述せずに、背後にある計算の論理を表現することになります。
オブジェクト指向
各オブジェクトが自律するようにコードをまとめます。オブジェクトにはデータと、データの変更を規定するメソッドが格納されます。
手続き型
コードを関数にまとめ、各関数はある特定の処理手順を担当します。
記号型
プログラムが自分自身をデータとして扱って変更可能とする構文形式や文法を持ちます。 ...
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

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
詳説 イーサネット 第2版

詳説 イーサネット 第2版

Charles E. Spurgeon, Joann Zimmerman, 三浦 史光, 豊沢 聡

Publisher Resources

ISBN: 9784873118727Other