- 博客(13)
- 收藏
- 关注
原创 21Winter\ C语言\ 第五章
C语言程序设计 第五章作业 ex2.1 #include<stdio.h> int main(){ int *var, ab; ab = 100; var = &ab; ab = *var + 10; printf("%d",*var); return 0; } 通过定义变量ab之后,定义一个”int”型指针”var”使之指向ab,通过改动指针的内容来改动变量之中的内容。 ex2.5 #include<stdio.h> int main(
2021-12-23 13:20:09
476
原创 21Winter\ C语言\第五章 上机报告
C语言程序设计 第五章 上机报告 expr1 #include<stdio.h> int main(){ char string[]="I am a girl."; printf("%s\n",string); printf("%c,%c\n",string[5],*(string+7)); return 0; } expr1 变式1 #include<stdio.h> int main(){ Char string[]="I am a
2021-12-23 13:15:25
141
原创 21Fall\ Machine Learning Transforms
import numpy import os from torch.utils.data import Dataset from PIL import Image class Mydata(Dataset): def __init__(self,root_dir,label_dir): self.root_dir = root_dir self.label_dir= label_dir self . path = os.pat...
2021-12-17 14:19:28
418
原创 21Fall\ 单变量线性回归
Notes taken inthe course Machine Learning by Andrew Ng. intuition about Gradient Descent: How the algorithm works & why the updating step makes sense to know how the formula works, again we reduce the original problem to a simplified proble...
2021-12-17 14:14:34
89
原创 21Fall\ 机器学习 概论
# Supervised Learning or Unsupervised Learning? Notes of the course Machine Learning by Andrew Ng. Supervised Learning Algorithm example of supervised learning(1) a data of house prices, horizontal axis is the square of the house and the vertical
2021-12-17 14:10:01
121
原创 21Summer\ OOP- Object Oriente Programming
对象/ 类/ 实例 && 构造方法 此外,也可以等到创建类对应的实例以后、再动态创建实例的属性 使用类变量时应该要是类.属性//实例.属性 因为类变量的作用域只限定义的这一个模块里面 Python会先查找实例变量然偶再查找对应的类变量 类实例的内置属性 obj.__dict__ 用dict的形式返回对象的属性 obj.__class__ 返回创建实例所用的类名称 类实例的内置方法 ...
2021-12-17 14:06:36
539
原创 21Winter\ #Pytorch .grad实现神经网络
底层方法来构建神经网络。使用的是吴恩达网课里面的一个Binary Classification的数据集。在logistic 函数里面用了两个Hidden Layer,然后调用它来mean-square error 函数。初始化optimizer,进行梯度下降,然后保存数据。
2021-12-17 14:00:01
733
原创 21Summer\Python List\tuple\dict.
List sum = 0 forx in[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]: sum = sum + x print(sum) >>> list(range(5)) [0, 1, 2, 3, 4] 排序操作 sort 函数 >>> a = ['c', 'b', 'a']>>> a.sort()>>> a ['a', 'b', 'c'] list.append(item)...
2021-12-17 13:48:25
657
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人