Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
by
Jake VanderPlas
,
菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
488
5
章 機械学習
成分の数
図5-136 GMM成分の数を選択するための
AICと
BICの可視化
クラスタの最適な数は
AIC
または
BIC
を最小にする値であり、どちらを使用するかで変わりま
す。
AIC
によると、成分数として
16
は多すぎであり、
8
から
12
が良い値と言えます。この種の問題
では、典型的に
BIC
の方がよりシンプルなモデルを推奨します。
この成分数の選択は、
GMM
が密度推定としてどの程度機能するかを示すものであり、クラスタ
リングアルゴリズムとしての良さを示すものではない点に注意が必要です。
GMM
は主に密度推定
であると考え、単純なデータセットに対してのみクラスタリングに使うことをお勧めします。
5.12.4
事例:
GMM
によるデータの生成
GMM
をデータの生成モデルとして使用して、入力データによって定義された分布から新しいサ
ンプルを作成する簡単な例は既に紹介しました。このアイデアを使用して、以前使用した手書き数
字のデー
タを元にして、新しい手書き数字を生成してみます。
まず、
scikit-learn
のツールを使用して、数字データを読み込みます。
In[18]: from sklearn.datasets import load_digits
digits = load_digits()
digits.data.shape
Out[18]: (1797, 64)
次に、最初の
100
個をプロットして、どのようなデータであったのかを再確認します(
図5-137
)。
In[19]: def plot_digits(data): ...
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.
Start your free trial
You might also like
Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
Jake VanderPlas, 菊池 彰
Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎
Andreas C. Muller, Sarah Guido, 中田 秀基
PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術
Prateek Joshi, 相川 愛三
初めてのGraphQL ―Webサービスを作って学ぶ新世代API
Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし
Publisher Resources
ISBN: 9784873118413
Other