随笔分类 - C++_Python_NN
摘要:static inline float sigmoid(float x) { return static_cast<float>(1.f / (1.f + exp(-x))); }
阅读全文
摘要:#include <iostream> #include <vector> template<typename T> std::vector<double> linspace(T start_in, T end_in, int num_in) { std::vector<double> linspa
阅读全文
摘要:#include<iostream> #include<assert.h> #include<vector> #include<chrono> int main() { int iter = 10000; std::vector<double> coeffs = { 4, 2, -2, 5, 0,
阅读全文