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

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.

主站蜘蛛池模板: 天镇县| 青海省| 玉田县| 桃园市| 故城县| 和林格尔县| 宁德市| 望谟县| 恩平市| 上犹县| 淄博市| 连平县| 内黄县| 怀化市| 延长县| 达拉特旗| 杭锦后旗| 贞丰县| 田林县| 赞皇县| 朝阳市| 岳阳县| 巩留县| 诸城市| 西峡县| 武邑县| 寿宁县| 安塞县| 十堰市| 香港| 瓦房店市| 会宁县| 鄂州市| 福泉市| 麻栗坡县| 巴楚县| 囊谦县| 正安县| 镇雄县| 炉霍县| 甘谷县|