HTML Fundamentals (1)
HTML Hypertext Markup Language - the Fundamentals (1)Anatomy of HTML1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859<!DOCTYPE html><html lang="en"><head> <!-- Metadata: character encoding, title, description --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description"...
CS571 Class note 1
CS571 @UW-MadisonCS571 is a course for basic UI/UX design and frontend programming by University of Wisconsin Madison. The course is completely open source for all cs students to learn globally. The official website of this course is CS571, the latest version is for 2025 Spring. You can find matching class videos and other materials in this website. JsonJson(Javascript Object Notation) is basically a way to represent data in a hierarchy key-value pairs. The first tutorial didn’t...
Data 8 学习笔记(四)
Data 8 学习笔记(四) 数据科学简直就是统计学披着计算机的外皮。——我 Testing Hypothesis 假设检验这里我们以孟德尔的豌豆花形状实验为例,孟德尔的模型是,对于每一株豌豆有75%其有紫色花,25%其为白花,其颜色和其他植株独立。 Step 1: The Hypothesis 假设 The Null hypothesis 零(原)假设:零假设认为所有数据都是在明确指定的条件下生成的,如果数据结果和零假设不同,那只可能是因为偶然性。 但是我们最关心的是,在实际应用中,零假设是我们研究者提出的,用来模拟数据的假设。 对于孟德尔模型来说,零假设就是其模型是正确的,即每株豌豆有75%是紫色花,25%是白色花,且互相独立。 The Alternative Hypothesis 备选假设:备选假设站在零假设的对立面,它说明除了概率以外的其他因素导致了结果和零假设相悖。 对于孟德尔模型来说,备选假设很简单,就是孟德尔模型不正确。这里我们并不说明理由和影响因素。 Step 2: The Test Statistic...
Data8 课堂笔记(三)
Data 8 学习笔记(三)Numpy random.choice()有时我们需要从集合里随机选取一个值,这时就可以用np.choice(),具体语法是: 123456#随机选取一个值random_choice = np.choice(array_name)#多次随机选取random_choices = np.choice(array_name, frequency)#模拟掷骰子三次dice_rolls = np.choice(np.arange(1,7), 3) 模拟 simulation - 以原神抽卡为例Step 1: What to simulate?我们想要模拟每次抽到五星物品的预计抽数。每一次抽卡只会有两个结果: 抽到五星物品 没抽到五星物品 Step 2: Simulating one play.接下来我们模拟一次抽卡的结果。目前我们只考虑五星,不考虑四星插队的情况,也不考虑up角色的情况: 在前73抽,每次出现五星物品的概率为0.6%。...
Data 8 学习笔记(二)
Data 8 学习笔记(二)对Table的整列使用函数 Apply function to a columndatascience库的Table支持对其中一列进行运算,具体的规则是: 12square = Table.column("")**2operation = Table.column("column1") + Table.column("column2") 这个本质上是从Table里拿一列并转换成np array,然后由np array来支持运算,np array支持的运算很多样: 算术运算(* + = / % ** //) 比较运算(逐元素) > < >= <= == np聚合函数np.sum, np.mean, np.max, np.min, np.std, np.count_nonzero np向量函数运算np.sqrt, np.log, np.exp, np.sin,...
Data 8 学习笔记(一)
Data 8 学习笔记(一)介绍DATA 8 是加州大学伯克利分校的数据科学基础课程,使用的编程语言为python。课程资源: 课程官网 包含了课程视频,课上ppt,但是作业需要UCB的账号。视频在Youtube可以找到,目前最新的是2022Spring(最新的人家不可能让你免费看嘛) Github 课程作业 包含课堂同步Jupiter notebook还有lab, hw, project以及最重量级的textbook。最新的是2025Spring(太良心了)。 具体的配置很简单,主要是使用numpy, panda, matplotlib, 还有UCB自己的datascience这几个python库。 datascience library安装(在terminal, cmd): npm install datascience 这个库属于UCB为了初学者专门创建的preliminary tool,它主要操作的数据类型是库里定义的Table。就如同它的名字一样,Table就是个表格,每一列都是一个np...
Markdown Fundamentals
Learn Markdown Markdown is a lightweight markup language for creating formatted text using a plain-text editor.Wikipedia I have always wondered why in Github some repos have beautifully documented readme section. Therefore, I decided to learn to create .md files for my readmes and posts. Markdown is widely used in various occasions, including Github readme.md, almost any post you see online and post in university forums, like ed. HTMLWe must note that md supports raw HTML, so we can use...
My First Blog~
我的第一个博客~Hello World1print('Hello World') 1System.out.println("Hello World") 1234int main() { cout << "Hello World" << endl; return 0;} 1console.log("Hello, World!");