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

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.
主站蜘蛛池模板: 靖远县| 敦化市| 武安市| 普兰店市| 石阡县| 永泰县| 澎湖县| 高安市| 陇西县| 宁武县| 那坡县| 东宁县| 江孜县| 固镇县| 紫金县| 巴南区| 凤城市| 田阳县| 清远市| 卢氏县| 五原县| 滨州市| 三门峡市| 贺兰县| 张家口市| 都昌县| 长岛县| 商城县| 江源县| 墨脱县| 墨竹工卡县| 孟连| 格尔木市| 桂平市| 罗山县| 镇康县| 怀化市| 黔西县| 宿迁市| 丰镇市| 冷水江市|