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

  • Test-Driven Machine Learning
  • Justin Bozonier
  • 150字
  • 2021-07-30 10:19:59

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.

主站蜘蛛池模板: 浑源县| 龙南县| 临夏县| 永德县| 南澳县| 高清| 赤壁市| 宁强县| 青州市| 定远县| 静宁县| 铜川市| 平武县| 沙河市| 横山县| 泸州市| 兰西县| 龙山县| 鹤山市| 台安县| 克拉玛依市| 伊通| 安泽县| 女性| 泗洪县| 仁布县| 南安市| 隆尧县| 长汀县| 仪陇县| 调兵山市| 鹤庆县| 永城市| 长海县| 高雄市| 夏津县| 瑞安市| 喀喇| 张家港市| 兴安盟| 铜山县|