- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 [foo] 生命游戏C++简单实现
看了知乎上的一个回答写了下面的代码。#include <iostream>#include <time.h>#include <vector>#include <windows.h>using namespace std;const int base = 100;const int unnormal_seeds = 10;con...
2018-12-27 12:11:38 3230 1
原创 [传统算法] 归并排序C++实现
void merge_sort(vector<int>& A, int l, int r){ if(l < r){ int m = (l+r) / 2; merge_sort(A, l, m); merge_sort(A, m+1, r); merge...
2018-12-24 20:07:53 138
原创 [机器学习算法] 梯度下降 python实现(线性回归)
算法思路根据吴恩达老师视频中的以下内容编写代码代码import matplotlib.pyplot as pltimport numpy as npclass Linear_Regression(): def __init__(self, data, theta0, theta1, learning_rate): self.data = data ...
2018-12-13 19:05:26 587
solarized_light.reg
2019-12-05
solarized_dark.reg
2019-12-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人