随笔分类 -  C++_Python_NN

摘要:static inline float sigmoid(float x) { return static_cast<float>(1.f / (1.f + exp(-x))); } 阅读全文
posted @ 2022-06-16 14:18 Truman001 阅读(850) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <vector> template<typename T> std::vector<double> linspace(T start_in, T end_in, int num_in) { std::vector<double> linspa 阅读全文
posted @ 2022-06-16 10:39 Truman001 阅读(1269) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<assert.h> #include<vector> #include<chrono> int main() { int iter = 10000; std::vector<double> coeffs = { 4, 2, -2, 5, 0, 阅读全文
posted @ 2022-06-16 10:29 Truman001 阅读(161) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示