自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

SWY's Workshop

To arms and to the death!

  • 博客(38)
  • 资源 (7)
  • 收藏
  • 关注

原创 2019.12.33

2019.12.33#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:35:52 50641

原创 2019.12.32

2019.12.32#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:33:45 6119

原创 2019.12.31

2019.12.31#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:31:45 3394

原创 2019.12.30

2019.12.30#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:30:30 2824

原创 2019.12.29

2019.12.29#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:29:44 2438

原创 2019.12.28

2019.12.28#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:28:45 2261

原创 2019.12.27

2019.12.27#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:27:07 1981

原创 2019.12.26

2019.12.26#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:26:11 1791

原创 2019.12.25

2019.12.25#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstream iss(text); vector<string> cache; string tmp; while (iss >> tmp) { ca

2021-07-21 22:24:41 1563

原创 c++ istringstream

c++ istringstream概述istringstream 是用来读入string的一种流,定义在<sstream>头文件中在需要读字符串,特别是由空格分隔的字符串时非常方便。示例#include <vector>#include <string>#include <sstream>using namespace std;vector<string> example(string text) { istringstr

2021-07-21 16:49:49 1028

原创 2019.12.24

2019.12.24b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:39:47 4904 2

原创 2019.12.23

2019.12.23b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:38:59 1915

原创 2019.12.22

2019.12.22b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:38:14 1387

原创 2019.12.21

2019.12.21b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:27:38 1314

原创 2019.12.20

2019.12.20b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:26:58 1146

原创 2019.12.19

2019.12.19b4 = nn.Sequential(Inception(480, 192, (96, 208), (16, 48), 64), Inception(512, 160, (112, 224), (24, 64), 64), Inception(512, 128, (128, 256), (24, 64), 64), Inception(512, 112, (144, 288

2021-07-17 21:26:14 995

原创 2019.12.18

2019.12.18bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:16:45 5073

原创 2019.12.17

2019.12.17bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:15:08 1390

原创 2019.12.16

2019.12.16bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:13:43 1000

原创 2019.12.15

2019.12.15bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:11:50 862

原创 2019.12.14

2019.12.14bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:10:20 878

原创 2019.12.13

2019.12.13bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:08:51 812

原创 2019.12.12

2019.12.12bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:07:01 784

原创 2019.12.11

2019.12.11bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-11 23:05:01 706

原创 c++ vector获得最大、最小值

c++ vector获得最大、最小值如题。使用max_element或min_element函数即可,举例如下:#include <vector>#include <algorithm>vector<int> beast = {1, 1, 4, 5, 1, 4, 1, 9, 1, 9, 8, 1, 0};// 注意函数返回的是指针int max_value = *max_element(beast.begin(), beast.end());//max_va

2021-07-11 22:33:53 5079

原创 2019.12.10

2019.12.10bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-10 23:39:42 1089

原创 2019.12.9

2019.12.9bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-09 23:04:23 978

原创 2019.12.8

2019.12.8bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-09 23:02:26 625

原创 2019.12.7

2019.12.7bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-09 22:59:41 600

原创 2019.12.6

2019.12.6bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin(), arr.end()); return target == arr; }

2021-07-09 22:50:05 497

原创 c++ vector比较

c++ vector比较如题,在c++语言中若想比较两个vector是否完全相等,在重载==的情况下,可以直接比较,举例如下:bool canBeEqual(vector<int>& target, vector<int>& arr) { if (target.size() != arr.size()) { return false; } sort(target.begin(), target.end()); sort(arr.begin()

2021-07-09 21:59:56 2300

原创 2019.12.5

2019.12.5import numpy as npfrom sklearn import metricsy = np.array([1, 1, 2, 2])scores = np.array([0.1, 0.4, 0.35, 0.8])fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2)

2021-07-08 23:22:25 790

原创 2019.12.4

2019.12.4import numpy as npfrom sklearn import metricsy = np.array([1, 1, 2, 2])scores = np.array([0.1, 0.4, 0.35, 0.8])fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2)

2021-07-08 23:18:30 493

原创 2019.12.3

2019.12.3import numpy as npfrom sklearn import metricsy = np.array([1, 1, 2, 2])scores = np.array([0.1, 0.4, 0.35, 0.8])fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2)

2021-07-08 23:13:06 453

原创 2019.12.2

2019.12.2import numpy as npfrom sklearn import metricsy = np.array([1, 1, 2, 2])scores = np.array([0.1, 0.4, 0.35, 0.8])fpr, tpr, thresholds = metrics.roc_curve(y, scores, pos_label=2)

2021-07-08 23:08:30 484

原创 git push时出现src refspec yourbranch does not match any

git push时出现src refspec yourbranch does not match any如题,git push到某分支出现报错解决方法:先切换到对应分支git checkout -b your branch

2021-07-07 21:38:16 153

原创 gitbook安装过程中出现TypeError: cb.apply is not a function

gitbook安装过程中出现TypeError: cb.apply is not a function如题。在gitbook安装过程中出现报错,如下图所示。解决方法:找到文件C:\Users\你的名字\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules\graceful-fs\polyfills.js,在如下位置:把 fs.stat = statFix(fs.stat) fs.fstat =

2021-07-07 11:31:28 1017 1

原创 图像处理(七):二维泊松融合

图像处理(七):二维泊松融合理论与二维泊松相似,给出融合的“补丁”以及待融合的“背景”,可以进行泊松融合。具体原理即为计算“补丁”各像素的梯度,然后以背景边缘的值作为已知,通过已经计算的梯度矩阵计算出融合的“补丁”的像素值。代码计算补丁梯度def buildSystemSparse(im_shape,mask): sizey, sizex = im_shape row_list = [] col_list = [] data_list = [] f

2021-07-03 09:09:46 591 6

莎士比亚戏剧单词表,保存为txt格式

莎士比亚戏剧单词表,保存为txt格式,与我的NLP博文配合使用。

2023-03-20

莎士比亚戏剧数据集各角色台词

莎士比亚戏剧数据集,第五、第六列分别为角色的名字以及他们的台词。与我的NLP系列博文配合使用。

2023-03-20

NLP 文本情感数据集-训练集

与我的NLP博文配套食用

2023-03-16

NLP 文本情感数据集-测试集

与我的NLP博文配套食用

2023-03-16

Frogs_MFCCs.csv

青蛙MFCC数据集

2020-05-11

train_set.csv

银行数据集,包括id,y,loan,housing,duration,pdays等标签

2020-05-10

arcanist.zip

这是Phabricator配套的Code Review工具,需要配合本地clt使用. 其提供了一个differential(code review)命令行工具Arcanist(arc)。

2020-05-04

php源代码,目前最新版

PHP即“超文本预处理器”,是一种通用开源脚本语言。PHP是在服务器端执行的脚本语言,与C语言类似,是常用的网站编程语言。PHP独特的语法混合了C、Java、Perl以及 PHP 自创的语法。利于学习,使用广泛,主要适用于Web开发领域。

2020-05-03

dafny-2.3.0.10506-x64-win.zip

dafny语言源代码 dafny 一种微软推出的编程语言用于程序正确性验证。是一种新型的语言。 (dafny one kind of Microsoft' s programming language for program correctness verification. Is a new language.)

2020-05-03

hsqldb-lib.zip

hsqldb可能需要的额外jar包 Additional Jar files needed for hsqldb.

2020-02-16

hsqldb-2.5.0.zip

开源数据库hsqldb最新版本2.5.0,含源代码及bin文件 Open-sourced database hsqldb2.5.0, including source code and bin file(stuctured in form of .BAT)

2020-02-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除