diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..dd84ea78 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/src/tutorials/RecommenderSystems/rs_rating_demo.py b/src/tutorials/RecommenderSystems/rs_rating_demo.py index c2c33de4..37e02dd1 100644 --- a/src/tutorials/RecommenderSystems/rs_rating_demo.py +++ b/src/tutorials/RecommenderSystems/rs_rating_demo.py @@ -1,10 +1,16 @@ #!/usr/bin/python -# coding:utf8 +# coding:utf-8 +# ------------------------------------------------------------------------------- +# Name: 推荐系统 +# Purpose: 推荐系统: Item CF/User CF/SVD 对比 +# Author: jiangzhonglian +# Create_time: 2020年9月21日 +# Update_time: 2020年9月21日 +# ------------------------------------------------------------------------------- from __future__ import print_function import sys import math from operator import itemgetter - import numpy as np import pandas as pd from scipy.sparse.linalg import svds @@ -12,9 +18,6 @@ from sklearn import model_selection as cv from sklearn.metrics import mean_squared_error from sklearn.metrics.pairwise import pairwise_distances from middleware.utils import TimeStat, Chart -""" -推荐系统: Item CF/User CF/SVD 对比 -""" def splitData(dataFile, test_size): @@ -256,4 +259,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()