上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 理论部分可参考: https://labuladong.github.io/algo/%E7%AE%97%E6%B3%95%E6%80%9D%E7%BB%B4%E7%B3%BB%E5%88%97/%E5%BF%AB%E9%80%9F%E9%80%89%E6%8B%A9.html 这里给出一个简洁的P 阅读全文
posted @ 2021-03-10 09:00 sbj123456789 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 输入一个链表,反转链表后,输出新链表的表头。 此题有四种解法,具体可参考: http://c.biancheng.net/view/8105.html 给出我个人最喜欢的一种:头插法 class Solution: # 返回ListNode def ReverseList(self, pHead): 阅读全文
posted @ 2021-03-10 03:37 sbj123456789 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 输入 随机序列长度,返回 随机序列 int * randpermC(int N) { int *arr = (int*)malloc(N * sizeof(int)); int *arr2 = (int*)malloc(N * sizeof(int)); int count = 0; memset( 阅读全文
posted @ 2020-06-26 03:01 sbj123456789 阅读(540) 评论(0) 推荐(0) 编辑
摘要: C++读取csv文件,采用文件流的方法,用到了getline函数(带有自动分隔功能) #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> using namespa 阅读全文
posted @ 2020-06-26 02:58 sbj123456789 阅读(5730) 评论(0) 推荐(0) 编辑
摘要: C++中string没有自带的split()函数,需要自己实现 void split(const string& s, vector<int>& sv, const char flag = ' ') { sv.clear(); istringstream iss(s); string temp; w 阅读全文
posted @ 2020-06-10 23:14 sbj123456789 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: find()函数 参数:字符子串 返回:该子串第一个字母的下标位置,如果没找到则返回 string_name.npos position = memory_string.find("KB"); if (position != memory_string.npos) { return stoi(mem 阅读全文
posted @ 2020-06-10 23:04 sbj123456789 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Introduction There are some traditional method for visualizing GNN and explanation system for it. But there is no specific visualization method for GN 阅读全文
posted @ 2020-05-02 10:15 sbj123456789 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 数据预处理 import pandas as pd import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as 阅读全文
posted @ 2020-04-22 00:52 sbj123456789 阅读(2584) 评论(0) 推荐(0) 编辑
摘要: min-max归一化: def normalize(x): return (x-min(x))/(max(x)-min(x)) 调用sklearn的库,可参考: https://www.cnblogs.com/zhanglianbo/p/5690974.html 阅读全文
posted @ 2020-04-21 12:13 sbj123456789 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 项目地址:https://github.com/rusty1s/pytorch_geometric 作者大神真的太屌了,膜拜,工程实现能力太强了 本文希望能够记录学习其源码的过程 data / dataset 部分(涉及优化?) 语法 @property 一种Python内置装饰器,可以将一个成员函 阅读全文
posted @ 2020-03-22 04:19 sbj123456789 阅读(879) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页