# tensorflow-logistics-regression
用tensorflow实现的基于逻辑回归的文本分类,将sigmoid函数改为sofamax函数,实现多分类的任务。
## 环境
python 3.6.2<br />
sklearn<br />
jieba 0.39<br />
tensorflow 1.12.0<br />
## 数据
数据集采用gaussic大佬的数据集,https://github.com/gaussic/text-classification-cnn-rnn<br />
链接: https://pan.baidu.com/s/1hugrfRu 密码: qfud<br />
## 运行
训练:python main.py<br />
单条语句测试:python predict.py
没有合适的资源?快使用搜索试试~ 我知道了~
用tensorflow实现了逻辑回归算法,将sigmoid换成softmax,实现多文本分类的任务。.zip
共59个文件
pyd:25个
py:7个
xml:5个
需积分: 5 0 下载量 142 浏览量
2024-02-03
19:51:19
上传
评论
收藏 5.77MB ZIP 举报
温馨提示
用tensorflow实现了逻辑回归算法,将sigmoid换成softmax,实现多文本分类的任务。
资源推荐
资源详情
资源评论
收起资源包目录
用tensorflow实现了逻辑回归算法,将sigmoid换成softmax,实现多文本分类的任务。.zip (59个子文件)
ahao111
venv
Lib
tcl8.6
init.tcl 24KB
pyvenv.cfg 69B
Scripts
_multiprocessing.pyd 29KB
select.pyd 27KB
_sqlite3.pyd 84KB
_msi.pyd 39KB
_ctypes.pyd 128KB
_elementtree.pyd 166KB
deactivate.bat 347B
_socket.pyd 72KB
_testmultiphase.pyd 30KB
_hashlib.pyd 1.59MB
_ssl.pyd 1.97MB
_bz2.pyd 93KB
_overlapped.pyd 42KB
_testimportmultiple.pyd 22KB
winsound.pyd 28KB
activate.bat 969B
_decimal.pyd 263KB
Activate.ps1 1KB
_testbuffer.pyd 51KB
_lzma.pyd 249KB
_testconsole.pyd 24KB
unicodedata.pyd 885KB
pyexpat.pyd 193KB
_testcapi.pyd 92KB
_tkinter.pyd 68KB
_asyncio.pyd 59KB
_ctypes_test.pyd 31KB
_distutils_findvs.pyd 25KB
activate 2KB
.gitattributes 31B
main.py 4KB
data
categories.txt 69B
stopwords.txt 14KB
datahelper
__init__.py 0B
__pycache__
data_process.cpython-36.pyc 4KB
__init__.cpython-36.pyc 118B
data_process.py 4KB
predict.py 2KB
.idea
tf-lr.iml 466B
workspace.xml 19KB
misc.xml 296B
modules.xml 262B
deployment.xml 359B
encodings.xml 135B
lr_model.py 1KB
model
checkpoints
checkpoint 159B
best_validation.index 159B
best_validation.data-00000-of-00001 351KB
best_validation.meta 19KB
tfidf_model.m 5.35MB
tfidf_model.mtfidf_model.m 299KB
__pycache__
lr_model.cpython-36.pyc 1KB
README.md 498B
config
__init__.py 0B
lr_config.py 795B
__pycache__
lr_config.cpython-36.pyc 870B
__init__.cpython-36.pyc 114B
共 59 条
- 1
资源评论
码农阿豪
- 粉丝: 1w+
- 资源: 1754
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功