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

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Let's now implement the SVD filter using the surprise package."

A block of code is set as follows:

#Import SVD
from surprise import SVD

#Define the SVD algorithm object
svd = SVD()

#Evaluate the performance in terms of RMSE
evaluate(svd, data, measures=['RMSE'])

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

 else:
#Default to a rating of 3.0 in the absence of any information
wmean_rating = 3.0
return wmean_rating
score(cf_user_wmean)

OUTPUT:
1.0174483808407588

Any command-line input or output is written as follows:

sudo pip3 install scikit-surprise

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "We see that the u.user file contains demographic information about our users, such as their agesexoccupation, and zip_code."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 永城市| 亳州市| 阿荣旗| 措勤县| 达州市| 扶沟县| 潮安县| 错那县| 永胜县| 许昌县| 万安县| 潢川县| 高安市| 苏尼特右旗| 江永县| 大方县| 南陵县| 正镶白旗| 车致| 锡林郭勒盟| 嫩江县| 柏乡县| 阿合奇县| 抚顺县| 嘉黎县| 宁陵县| 嘉黎县| 孝感市| 留坝县| 咸丰县| 治多县| 江门市| 禹州市| 新和县| 精河县| 秦皇岛市| 玉溪市| 连山| 三台县| 荃湾区| 大渡口区|