pip install Cython
Install visual studio 2019
MinGW Cygwin
python -m compileall <src>
删除 <src> 目录下所有 .py 文件就可以打包发布。
find . -name '*.py' -type f -print -exec rm {} \;
https://gitforwindows.org/
https://tortoisegit.org/download/
python -O -m compileall .
find . -name '*.pyc' -exec rename 's/.cpython-35.opt-1//' {} \;
find . -name '*.pyc' -execdir mv {} .. \;
find . -name '*.py' -type f -print -exec rm {} \;
find . -name '__pycache__' -exec rmdir {} \;
zip -r ../$1.zip ./*
python -O -m compileall .
find . -name "*.pyc" -exec rename ".cpython-39.opt-1" "" {} \;
find . -name '*.pyc' -execdir mv {} .. \;
find . -name '*.py' -type f -print -exec rm {} \;
find . -name '__pycache__' -exec rmdir {} \;
zip -r ../$1.zip ./*
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
性能分析工具 一、基本的查询运行时间工具 — time """ start = time.time() regressor.model_param_search() end = time.time() print("计算时间:{}".format(end - start)) """ 二、通过 timeit 模块计算代码执行时间 Python 提供了 timeit 模块来测量代码的执行速度,可以用该模块来对各种简单的语句进行计时。 """ python3.6 -m timeit -n 5 -r 5 -s "import module_name" "module_name.func(*args, **kwargs)" """ 简要对上面的语句作下说明: -m: 指定要作为脚本运行的内置模块名称,这里就是 timeit 模块 -n: 表示 timeit 要对执行的代码循环执行 n 次 -r: 表示 timeit 会重复 r 次执行。 -n 与 -r 的表示的意思就是,time
资源推荐
资源详情
资源评论
收起资源包目录
pyprofiling-main.zip (31个子文件)
pyprofiling-main
utils.py 3KB
encrpty
__init__.py 0B
readme.md 770B
featselection
__init__.py 0B
mutualinfoclassif.py 795B
rfe.py 340B
extratreesclassifier.py 883B
selectpercentile.py 428B
pipeline.py 415B
linearsvc.py 354B
variancemutualinfo.py 1KB
data
sh000001.csv 320KB
sh000001_10.png 30KB
sh000001_10.csv 1.37MB
sh000001_3.csv 448KB
sh000001_3.png 30KB
sh000001.day 67KB
sh000001_2._csv 320KB
predict.png 20KB
model.py 3KB
profiling
__init__.py 0B
stats.py 253B
server.py 299B
requirements.txt 676B
deploy
__init__.py 0B
installguide.txt 253B
demo.py 0B
log
attention_matrix.png 43KB
predict2.png 56KB
db
__init__.py 0B
db.md 605B
共 31 条
- 1
资源评论
博士僧小星
- 粉丝: 1922
- 资源: 5884
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功