原创 最小二乘法直線擬合的C語言及matlab實現
最小二乘法直線擬合的C語言及matlab實現 這裏直接上代碼,理論推導參看普通最小二乘法的推導證明 C語言實現 #include <stdio.h> //最小二乘法求散點擬合函數y=a+bx的參數a和b void LFM(doub
原创 Python在輸入時設置等待時間的一種方法
Python在輸入時設置等待時間的一種方法 # -*- coding: utf-8 -*- """ @author: __spyder__ """ import time import msvcrt import os def
原创 W10安裝pytorch
W10安裝pytorch 假設你已經裝好了python等環境 pip3 install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl
原创 tf.reduce_mean的測試
tf.reduce_mean的測試 # -*- coding: utf-8 -*- """ Created on Thu Apr 4 10:01:34 2019 @author: _spyder_ """ import tenso
原创 關於如何獲取placeholder的shape
關於如何獲取placeholder的shape """ # -*- coding: utf-8 -*- """ Created on Thu Apr 4 11:00:19 2019 @author: _spyder_ """ imp
原创 從n個數中選出k個數
從n個數中選出k個數 #include <iostream> #include <vector> #include <algorithm> using namespace std; vector<int> a; vector<int>
原创 求N個數的最大公約數和最小公倍數
求N個數的最大公約數和最小公倍數 #include <iostream> #include <cmath> using namespace std; //[15,40] [40,15] [15 10] [10 5] [5 0] //求
原创 動態規劃多重揹包
動態規劃多重揹包 #include <iostream> using namespace std; int n=3; int w[]={3,4,2}; int v[]={4,5,3}; int W=7; //f是指標函數 //s是狀態
原创 哈夫曼樹
哈夫曼樹 #include <stdio.h> //哈夫曼樹節點個數爲2n-1 //n爲葉子節點的個數 //故MAX_NODE>2n-1 #define MAX_NODE 200 #define MAX_SIZE 40 #
原创 C/C++二維數組各種傳參方法
C/C++二維數組各種傳參方法 #include <stdio.h> #include <iostream> using namespace std; const int M=5; const int N=5; void array
原创 C/C++產生區間隨機整數或小數的方法
C/C++產生區間隨機整數或小數的方法 #include <iostream> #include <queue> #include <cstdlib> #include <ctime> using namespace std; con
原创 無法打開chm文件的終極解決方案
無法打開chm文件的終極解決方案 1.下載好用的itss.dll,hhctrl.ocx ,hh.exe貼到C:\Windows\System,C:\Windows\System32,C:\Windows\SysWOW64各一份 2.開
原创 TensorFlow padding參數:SAME還是VALID?
(一)在TensorFlow源碼中,不難查到 padding=’SAME’ : out_height=⌈in_heightstride⌉out_height=⌈in_heightstride⌉ out_width=⌈in_width
原创 VMware ubuntu以橋接方式配置固態IP
軟件版本:VMware® Workstation 12 Pro Ubuntu 17.04 Windows 10 (一)首先需要對VMware進行一些配置