Skip to content

Commit 6bd64e0

Browse files
committed
fix errors in README.md
1 parent 759b0a2 commit 6bd64e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ UCAS-DM(UCAS-DataMining)是一个较为简易的推荐算法库,专门为国
2525
------
2626
直接通过pip进行安装即可
2727
```
28-
pip install ucas-dm==1.0.0
28+
pip install ucas-dm
2929
```
3030
安装本库时会自动检查并安装(若缺少)`numpy``pandas``gensim``jieba``scikit-surprise`等库,但并不会自动检查安装`Faiss`
3131

@@ -34,10 +34,10 @@ pip install ucas-dm==1.0.0
3434
### 数据预处理
3535
```python
3636
import pandas as pd
37-
from ucas_dm.preprocess import Preprocessor
37+
from ucas_dm.preprocess import PreProcessor
3838

3939
path_to_source_data = ".."
40-
pp = Preprocessor(path_to_source_data)
40+
pp = PreProcessor(path_to_source_data)
4141
news_id_and_its_content = pp.extract_news()
4242
news_id_and_its_content.to_csv(path_or_buf = "./news_id_and_its_content.csv", index = False)
4343

@@ -82,6 +82,7 @@ import pandas as pd
8282
k_list = [5, 10, 15]
8383
k_neighbors = 30
8484
user_logs = pd.read_csv("./user_logs.csv")
85+
eva = Evaluator(user_logs)
8586
cb = CollaborateBasedAlgo(user_based = True, k = k_neighbors)
8687
eva.evaluate(algo = cb, k = k_list, n_jobs = 2, split_date = '2014-3-21', auto_log = True)
8788
```

0 commit comments

Comments
 (0)