上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: import cv2 import numpy as np import os import pickle data_dir = os.path.join("data", "cifar-10-batches-py") train_o_dir = os.path.join("data", "train 阅读全文
posted @ 2020-11-19 12:31 acwarming 阅读(169) 评论(0) 推荐(0) 编辑
摘要: import cv2 import numpy as np import os import sys import pickle data_dir = os.path.join("./") train_o_dir = os.path.join(data_dir,"train") def my_mkd 阅读全文
posted @ 2020-11-19 12:29 acwarming 阅读(611) 评论(0) 推荐(0) 编辑
摘要: import os import random trainval_percent = 0.2 train_percent = 0.8 xmlfilepath = 'Annotations'#xml文件 txtsavepath = 'ImageSets\Main'#存traintxt等 total_x 阅读全文
posted @ 2020-11-19 12:28 acwarming 阅读(157) 评论(0) 推荐(0) 编辑
摘要: typedef struct HeapStruct *MaxHeap; struct HeapStruct{ int *Elements;/* 存储堆元素的数组 */ int Size;/* 堆的当前元素个数 */ int Capacity;/* 堆的最大容量 */ }; MaxHeap Creat 阅读全文
posted @ 2020-02-18 17:26 acwarming 阅读(172) 评论(0) 推荐(1) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int a[11][11]; bool visited[11]; void store_graph() { for(int i=1;i<=10;i++) for(int j=1;j<=10;j++) cin>> 阅读全文
posted @ 2020-01-31 16:28 acwarming 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int a[11][11]; bool visited[11]; void store_graph(){//邻接矩阵存储图 int i,j; for(i = 1; i <= 10; i++) for(j = 1 阅读全文
posted @ 2020-01-31 16:26 acwarming 阅读(377) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define MaxVertexNum 100 /* 最大顶点数设为100 */ typedef int Vertex; /* 用顶点下标表示顶点,为整型 */ typedef int WeightType; /* 边的权值设为整型 */ typed 阅读全文
posted @ 2019-12-28 16:34 acwarming 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define MaxVertexNum 100 //最大顶点 #define INFINITY 65535 // ∞设为双字节无符号整数的最大值65535 using namespace std; typedef int Vertex; //用顶点下 阅读全文
posted @ 2019-12-28 16:15 acwarming 阅读(433) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define MaxSize 100 using namespace std; //哈夫曼树结点结构 typedef struct { int weight;//结点权重 int parent, left, right;//父结点、左孩子、右孩子在数 阅读全文
posted @ 2019-12-27 16:10 acwarming 阅读(223) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define MaxSize 100 using namespace std; typedef struct AVLNode *Position; typedef Position AVLTree; struct AVLNode{ int data; 阅读全文
posted @ 2019-12-25 20:46 acwarming 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页