上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页
摘要: YouTube-dl的安装与使用:ytdl-org/youtube-dl: Command-line program to download videos from YouTube.com and other video sites (github.com) 下面是以m4a格式下载音频以及对应中文字 阅读全文
posted @ 2021-05-26 10:49 荒唐了年少 阅读(2270) 评论(4) 推荐(0) 编辑
摘要: 首先再GitHub找到muduo,查看clone的链接,使用git命令clone到本地: git clone https://github.com/chenshuo/muduo.git muduo现在有1.0和2.0两个版本可选,1.0版本编译前需要下载boost,2.0不需要 安装boost: y 阅读全文
posted @ 2021-05-10 17:00 荒唐了年少 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 注释过的源码太多就不放在这,可以去GitHub查看 下面是测试程序: #include "Exception.h" #include <iostream> class Bar { public: void test() { throw::muduo::Exception("oops"); // 抛出 阅读全文
posted @ 2021-03-18 10:19 荒唐了年少 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 在写for循环时,可能大家都会想过是写i++还是++i,表面看两者对for循环并没有什么区别,至于用哪一种 可能更多地是看个人的习惯,笔者之前习惯于使用i++,但是最近看到很多示例代码用的都是++i,我就想到 一个问题,两者用在for循环时,真的没有区别吗?于是我做了一个测试,写了两个for循环,每 阅读全文
posted @ 2021-03-18 09:36 荒唐了年少 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 首先是添加注释的源码: // Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: Shuo Chen (chenshuo 阅读全文
posted @ 2021-03-17 15:58 荒唐了年少 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 首先给出我学习源码时添加的注释: 分别对应Timestamp.h Timestamp.cc文件 // Use of this source code is governed by a BSD-style license // that can be found in the License file 阅读全文
posted @ 2021-03-16 20:20 荒唐了年少 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 首先看一下man文档中这三个函数的定义: select函数: #include <sys/time.h> #include <sys/types.h> #include <unistd.h> int select(int nfds, fd_set *readfds, fd_set *writefds 阅读全文
posted @ 2021-03-12 19:13 荒唐了年少 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 代码:https://github.com/wangmlshadow/Commonly-used-model-building-in-machine-learning/blob/main/Model/%E9%9A%8F%E6%9C%BA%E6%A3%AE%E6%9E%97/%E9%9A%8F%E6% 阅读全文
posted @ 2021-01-30 14:47 荒唐了年少 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 下文仅给出模型的PyTorch实现,具体问题分析过程以及数据下载可以去作者的GitHub 逻辑回归介绍:可以看这里 主要是区分它和线性回归的差异 导入相关库: import numpy import pandas as pd import matplotlib.pyplot as plt impor 阅读全文
posted @ 2021-01-16 13:32 荒唐了年少 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 关于线性回归的介绍可以看这里:线性回归介绍 下文主要介绍通过线性回归解决Kaggle中的HousePrices问题,使用的是PyTorch。 下文会给出使用线性回归创建的最终模型,以及超参数等内容,但是整个模型的搭建以及试错的过程由于内容太长,感兴趣 的可以去作者的GitHub下载相关的Jupyte 阅读全文
posted @ 2020-12-30 21:02 荒唐了年少 阅读(797) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页