- 博客(16)
- 资源 (3)
- 收藏
- 关注
转载 VS Code +Python
1. VScode 写 Python 无法使用 autocomplete/intellisence删除当前工作文件夹里的.vscode文件夹https://www.v2ex.com/t/4385662.无语法高亮切换至默认dark主题,检查magicpython插件是否安装https://blog.csdn.net/zhouzixin053/article/details/51...
2018-12-25 19:03:19 316
转载 使用vscode开发Python程序:代码静态检查工具pylint及代码格式化工具yapf的配置使用
Pylint由于 Python 插件在 2018.1.0 (Jan. 2018) 版本更新中引入了一项默认设置: // 静态检查时是否使用pylint的最小规则集(minimal set of rules) "python.linting.pylintUseMinimalCheckers": true这一默认设置等价于以下pylint选项:--disable=all --en...
2018-12-25 16:12:05 4086
原创 Unity Predefined assemblies/assembly definition files
使用Unity2018 的TestRunner,无法引用自己的代码进行测试,原因是测试代码和程序代码不在同一个程序集,无法引用;需要新建程序集,进行引用。Script compilation and assembly definition filesAboutUnity automatically defines how scripts compile to managed asse...
2018-12-25 11:08:31 1017
原创 Git删除远程分支;3dsmax关联max文件
1.删除远程分支https://git-scm.com/book/zh/v1/Git-%E5%88%86%E6%94%AF-%E8%BF%9C%E7%A8%8B%E5%88%86%E6%94%AF#%E5%88%A0%E9%99%A4%E8%BF%9C%E7%A8%8B%E5%88%86%E6%94%AF如果不再需要某个远程分支了,比如搞定了某个特性并把它合并进了远程的 master 分支...
2018-12-24 10:41:56 151
原创 RuntimeError: An attempt has been made to start a new process before the current process...
https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html#sphx-glr-beginner-blitz-cifar10-tutorial-pyimport torchimport torchvisionimport torchvision.transforms as transformsimport matp...
2018-12-19 01:21:19 20353 9
转载 pytorch源码:C拓展
Python C拓展和普通的CPython方式拓展类似,下面主要看pytorch中的拓展模块“_C"的定义和相应其他模块的添加方式。pytorch中的拓展模块定义代码主要在torch/csrc/Module.cpp中,在预备知识中熟悉Python如何拓展C后,直接在Module.cpp找到感兴趣的初始化部分:#if PY_MAJOR_VERSION == 2PyMODINIT_FUNC...
2018-12-19 00:30:57 469
转载 AI Questions
1.训练决策树时的参数是什么?2.在决策树的节点处分割的标准是什么?3.基尼系数的公式是什么?4.熵的公式是什么?5.决策树如何决定在哪个特征处分割?6.你如何用数学计算收集来的信息?你确定吗?7.随机森林的优点有哪些?8.介绍一下boosting算法。9.gradient boosting如何工作?10.关于AdaBoost算法,你了解多少?它如何工作?1...
2018-12-16 15:23:55 134
原创 Unity Instancing类别
Hardware instancing:This is a method supplied by Direct3D which allows you to draw multiple instances of a mesh in a single draw call. This is what the OP was asking about, and what Aras said would b...
2018-12-14 13:27:08 253
原创 Unity 2017+提取模型材质
Unity2017.2以上,模型导入新增materials标签页,可以不提取出材质,如果要修改某一个材质(修改为cutout/transparent),可以点开fbx模型,选中要修改的材质球,选中择Assets- > Extract From Prefab;提取单独材质进行修改。https://docs.unity3d.com/Manual/FBXImporter-Materials.h...
2018-12-12 10:10:25 3088
转载 Anaconda学习使用
https://conda.io/docs/user-guide/getting-started.htmlhttps://docs.anaconda.com/anaconda/install/windows/install windows (不添加环境变量,使用anaconda开始菜单中的命令行)Choose whether to add Anaconda to your PATH e...
2018-12-06 23:52:28 1087
转载 Numpy axis /Numpy.ufunc.identity
轴用来为超过一维的数组定义的属性,二维数据拥有两个轴:第0轴沿着行的垂直往下,第1轴沿着列的方向水平延伸https://www.cnblogs.com/rrttp/p/8028421.html2.for the ufunc np.add, ufct.identity is 0. But for another function it may be something else. F...
2018-12-06 18:24:54 287
原创 Unity layer LayerMask
1.name转layer 使用 LayerMask mask = 1 << LayerMask.NameToLayer(“something”):1 << 10 打开第10的层。 等价于【1 << LayerMask.NameToLayer("Ground");】 也等价于【 LayerMask.GetMask(("Ground");】~(1 <...
2018-12-06 18:23:07 1179
原创 Unity 单面 碰撞
unity physics.raycast 如果使用默认plane (mesh collider)检测,只有朝向面法线的射线可以检测到,可以设定足够长的射线分别从面两边发射,或者使用双面模型https://answers.unity.com/questions/573213/raycast-not-detecting-planes.html...
2018-12-05 19:03:37 2055
原创 Numpy nan
Cause:https://docs.scipy.org/doc/numpy/user/quickstart.html#indexing-slicing-and-iterating>>> a = np.arange(10)**3>>> aarray([ 0, 1, 8, 27, 64, 125, 216, 343, 512, 729]...
2018-12-05 19:00:13 820
转载 Mac @扩展属性
https://mackuba.eu/2008/06/30/ls-on-mac-and-extended-file-attributes/Yesterday while I was working in the terminal I noticed something unusual about the results of “ls -al” command:What are thos...
2018-12-05 01:12:44 618
转载 Mac Python pip 安装
https://pip.pypa.io/en/stable/installing/curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython get-pip.pyMAC OSX 正確地同時安裝 PYTHON 2.7 和 PYTHON3https://stringpiggy.hpd.io/mac-osx-python3-...
2018-12-04 00:59:51 240
Computer Networking A Top-Down Approach, Global.pdf
2019-07-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人