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

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.
主站蜘蛛池模板: 宁河县| 阿瓦提县| 漳浦县| 房产| 孟津县| 平遥县| 墨竹工卡县| 民勤县| 宁乡县| 乐平市| 梁河县| 隆安县| 庆城县| 贵南县| 隆林| 阿荣旗| 上饶市| 托里县| 梧州市| 文山县| 温泉县| 宜川县| 韶山市| 自贡市| 漳州市| 区。| 金阳县| 上饶市| 东乌珠穆沁旗| 海伦市| 开平市| 拉孜县| 固原市| 收藏| 合山市| 江门市| 东乌| 北海市| 山东省| 中江县| 隆昌县|