本项目原为秋季统计学习导论作业,我在完成代码和报告后选择将其开源。任务共包含两项:
- 利用
load_breast_cancer
函数载入样本并选用一种分类函数对其分类,此项目选用linearSVC
进行分类 - 载入news对应的CSV文件,利用
KNN
方法对其分类
- 依据任务选用Task 1/2.py文件即可
- Fork 本仓库
- 新建Dev分支
- 提交代码
- 新建 Pull Request
This project is homework 1 of Course 80250272-An Introduction to Statistical Learning Theory. We decided to make it open-source after we finished the homework and reports
- Use function
load_breast_cancer
to load the breast cancer set and select a methon to classify them,we chooselinearSVC
as the method - Load the CSV files respectively,and use
KNN
method to classify the news
- Install package according to requirements.txt
- Fake news can be downloaded from Fake news
- Real news can be downloaded from Real news
- Use Task 1/2.py according to your task
- Fork this repo
- Create
Dev
branch - Edit code
- Create Pull Request