Skip to Main Content
Python 机器学习实践:测试驱动的开发方法
book

Python 机器学习实践:测试驱动的开发方法

by Matthew Kirk
January 2018
Intermediate to advanced content levelIntermediate to advanced
211 pages
8h 31m
Chinese
China Machine Press
Content preview from Python 机器学习实践:测试驱动的开发方法
130
8
尔数据的另一种表示方法是使用二进制位对“是”或“否”进行编码:
0
表示
false
1
表示
true
目前已经有许多常见的处理布尔数据的函数。例如 ORANDNANDNOR NOT 等都
是布尔函数。这类函数接受两个布尔数据类型的输入,输出的结果也是布尔数据
true
false
这些方法已经通过数字逻辑门给电子行业带来了巨大的进步,并且可以组合在一起来
解决许多问题。但是如何构建布尔函数的模型呢?
以下所示是一个对
OR
函数进行建模的简单例子:
This is such a common occurrence that there already exist many functions that deal
with Boolean data. Functions such as
OR, AND, NAND, NOR, and NOT are all Boolean func‐
tions. They take in two inputs that are true or false and output something that is true
or false.
These have been used for great advances in the electronics community through digi‐
tal logic gates and can be composed together to solve many problems. But ...
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

Mastering Python for Bioinformatics

Mastering Python for Bioinformatics

Ken Youens-Clark

Publisher Resources

ISBN: 9787111581666