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

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.

主站蜘蛛池模板: 长沙县| 司法| 射阳县| 汉源县| 湘乡市| 林州市| 扶余县| 拉孜县| 商河县| 行唐县| 雅江县| 许昌市| 凌源市| 达日县| 兴业县| 长治县| 渭源县| 林甸县| 永德县| 青海省| 拜泉县| 万州区| 尼勒克县| 龙岩市| 分宜县| 河源市| 新竹市| 调兵山市| 丰镇市| 海丰县| 竹山县| 梁平县| 蓬溪县| 大理市| 盐亭县| 梓潼县| 巨野县| 清远市| 金山区| 扶风县| 高尔夫|