Skip to Content
Java数据科学实战
book

Java数据科学实战

by Michael R. Brzustowicz, PhD
January 2020
Intermediate to advanced
202 pages
5h 41m
Chinese
Posts & Telecom Press
Content preview from Java数据科学实战
线性代数
|
29
可以采用紧凑得多的数据结构
W
来解释非常大的数据结构的内容,例如
X
与
Y
。线性代
数的规则使得我们可以根据
X
的一行与
W
的一列来表示
Y
中任意特定的值。例如,
y
1, 1
的
值可以用下式表示:
y
1, 1
=
x
1, 1
ω
1, 1
+
x
1, 2
ω
2, 1
+
…
+
x
1,
n
ω
n
, 1
本章余下内容将讨论线性代数的规则与运算,最后一节会给出线性系统
XW
=
Y
的解。数据
科学中更高级的话题,比如第
4
章与第
5
章给出的那些,在很大程度上依赖于线性代数。
2.1
 构造向量和矩阵
不论采用哪种形式的定义,
向量
(
vector
)就是给定维数
1
的一维数组
2
,可以举出很多例子。
比如整型数组,表示
Web
指标每天的值。再比如存在大量“特征”的数组,该数组将作为
机器学习例程的输入。还有对几何坐标的跟踪,例如
x
与
y
,可以为每个
[x, y]
对创建数
组。虽然可以从哲学角度讨论向量(即向量空间中具有大小与方向的元素)的实际含义是
什么,但是只要在解决问题的过程中,对向量的定义保持一致,就可以很好地使用所有数
学公式,不需要关心它的哲学意义。
一般来说,向量
x
具有以下的形式,它由
n
个分量构成。
x
=
(
x
1
x
2
…
x
n
)
同样,矩阵
A
就是具有
m
行与
n
列的二维数组。
1,11,2 1,
2,12,2 2,
,1 ,2 ,
A
n
n
mm mn
aa a
aa a
aa a



=






也可以采用矩阵表示法,把向量表示为列向量。
1,1
2,1
,1
X
m
x
x
x



=




本书中小写黑斜体字母表示向量 ...
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

云安全实用指南

云安全实用指南

Chris Dotson
Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino

Publisher Resources

ISBN: 9787115533302