10 2024 档案
homework1.2
摘要:输出网络结构,使用CNN,由卷积层,池化层和全连接层构成 将图像转化成tensor的时候做了简单的数据增强 # 数据预处理和数据增强 transform = transforms.Compose([ transforms.RandomHorizontalFlip(), transforms.Rand
阅读全文
homework1
摘要:缺失值处理 将一些0值不合理的列以列均值填充 # 缺省值处理 features_with_zero = ['Glucose', 'BloodPressure', 'SkinThickness', 'Insulin', 'BMI'] data[features_with_zero] = data[fe
阅读全文
P3369 【模板】普通平衡树
摘要:直接抄WIDA的pbds板子 #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef pair<int, int
阅读全文
[Violet] 蒲公英(分块)
摘要:区间众数要求即有次数又要数字最小 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef long long ll; typede
阅读全文
P1502 窗口的星星(扫描线)
摘要:关键在把矩形框点转化为点的影响放大为矩形,此时转变为求一个点的权值最大 #include<bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int,int> PII; typedef l
阅读全文