官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Notice that in my test, I instantiate a NumberGuesser object."

A block of code is set as follows:

def given_no_information_when_asked_to_guess_test():
  number_guesser = NumberGuesser()
  result = number_guesser.guess()
  assert result is None, "Then it should provide no result."

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

      for the_class, trained_observations in self._classifications.items():
 if len(trained_observations) <= 1:
 return None
        probability_of_observation_given_class[the_class] = self._probability_given_class(trained_observations, observation)
 [default]
 

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 涪陵区| 扎兰屯市| 龙门县| 江永县| 客服| 枣庄市| 眉山市| 玛多县| 依安县| 周口市| 汉川市| 申扎县| 巧家县| 上蔡县| 潮州市| 广丰县| 增城市| 治县。| 纳雍县| 黄平县| 罗定市| 团风县| 东兰县| 五指山市| 兴安县| 临泉县| 鹤岗市| 丰台区| 阿尔山市| 军事| 泽库县| 德阳市| 灵璧县| 云南省| 靖江市| 连山| 正安县| 望奎县| 三都| 府谷县| 徐汇区|