- 博客(10)
- 收藏
- 关注
原创 Locally weighted linear regression (LWLR) 的原理及其 normal equation 的证明
原理讲解caimouse 在他的关于 Locally weighted linear regression 的文章中指出了一些基本原理的 python 代码实现。引用他的代码是这样的#python 3.5.3 蔡军生 #http://edu.youkuaiyun.com/course/detail/2592 # 计算加权回归 import numpy as npimport r...
2019-02-06 15:37:02
1369
原创 PC Week 1 - Required Python knowledge, coding standards, and machine grading
Core MaterialsGuidelines for Coding StyleDocumentationDocumentation strings (“docstrings”) are an integral part of the Python language. They need to be in the following places:At the top of each file
2017-09-19 14:00:26
466
原创 IIPP Week 8 - Sets and animation
Week 8a - Groups and SpritesSetDefinitionUnordered collection of data with no duplicatesmethoda = set([])a.adda.removeina.difference_update# Examples of Sets instructors = set(['Rixner', 'Warren'
2017-09-12 16:03:36
330
原创 IIPP Week 6 - Classes and object-oriented programming
Week 6a - ClassesObject-oriented Programming - 1Create a Classclass_obj = ClassName(...)Parameter selfself as a parameter of the method of class, which on behalf of class itselfdouble underbarThese me
2017-08-30 12:29:13
482
原创 IIPP Week 5 - Mouse input, list methods, dictionaries
Week 5a - Mouse Input and More ListsMouse Inputdef click_handler(pos) frame.set_mouseclick_handler(click_handler)List Methodsinindexappendpop, remove("a") = pop(list.index("a"))
2017-07-19 07:48:58
474
原创 IIPP Week 4 - Lists, keyboard input, the basics of modelling motion
Week 4a - Basics of ListsListCreatenone, string, listsAccesslen sliceUpdate# List reference problem#################################################### Student should enter code belowa = [5, 3, 1, -1
2017-07-12 16:06:01
357
原创 IIPP Week 3 - Canvas, drawing, timers
Canvas and DrawingThe origin for canvas is always in the upper left.Always drawing while startingTo draw test canvas.draw_text(text, point, font_size, font_color)To draw circle canvas.draw_circle
2017-07-03 17:22:30
379
原创 Python Tips
使用 type 前,先 import typesPython 里面字符串转整型 int,是直接转成对应数字而没有 +48,另外只允许 a = int(a) 的写法而不允许 a = (int)a
2017-07-01 20:23:55
348
原创 IIPP Week 2 - Event-driven programming, local/global variables
Week 2a - Interactive Application in PythonEvent-driving programmingdefinationInitialize everything and waite events to run the programWhat is eventInput buttontext boxKeyboard key downkey upMou
2017-06-30 14:48:13
585
转载 欢迎使用优快云-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2017-06-30 13:39:52
286
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人