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

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.
主站蜘蛛池模板: 青州市| 中方县| 德清县| 越西县| 卢氏县| 信宜市| 肥东县| 濉溪县| 泗洪县| 苍山县| 和平县| 清丰县| 法库县| 铜鼓县| 年辖:市辖区| 巴里| 顺平县| 大名县| 余庆县| 共和县| 靖西县| 沙坪坝区| 棋牌| 韶关市| 神池县| 宁陕县| 新疆| 阜新市| 河池市| 梁平县| 丽江市| 天气| 鹿泉市| 榆社县| 敖汉旗| 绍兴市| 锡林浩特市| 临泉县| 太和县| 出国| 德化县|