Git 不是内部或外部命令 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 3月 26, 2016 只需要設定Git 環境變數就可以解決 設定如下Git 安裝路徑 : D:\Git\bin D:\Git\Git\mingw64\libexec\git-core (重點指定bin、git-core路徑) Step1: 找到環境變數 Step2: Path 編輯 Step3: 變數值加入 D:\Git\bin;D:\Git\mingw64\libexec\git-core Reference: https://git-scm.com/book/en/v2 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
What is Recall Precision ?? 3月 28, 2016 Information retrieval (IR) 統計數據時常用到,不會用就快學吧 首先要了解什麼是TP, TN, FP, FN 老師猜測: positive : 猜測有蛀牙 negative : 猜測沒有蛀牙 情境: 老師想要知道全班有多少人蛀牙,老師不是專業醫生所以就憑感覺用猜的... True Positive (TP) : 實際學生有蛀牙,老師猜這位同學有蛀牙 ==> 正確猜對 True Negative (TN) : 實際學生沒有蛀牙,老師猜這位學生 沒有 蛀牙==>正確猜中沒有蛀牙 False Positive (FP) : 實際學生沒有蛀牙,老師猜這位同學有蛀牙==>猜錯 False Negative (FN) : 實際學生有蛀牙,老師猜這位同學 沒有 蛀牙==>猜錯 如何計算Recall, Precision 假設全班有50人,20人有蛀牙、30人沒有蛀牙, 今天老師挑出30人,其中20人有蛀牙,另外不小心把10人也當成有蛀牙 TP=20 FP=10 FN=0 TN=20 recall(召回率) :應該要被檢查到的學生。 =>20/(20+0) =>20/(20為正確猜到,有蛀牙學生+0為猜沒有蛀牙,但其中學生有蛀牙) precision(精準率) : 實際被檢測到的學生。 =>20/(20+10) => 20/(20為正確猜到,有蛀牙學生+10為誤判成有蛀牙學生,其實沒有蛀牙) Reference : https://zh.wikipedia.org/wiki/ROC%E6%9B%B2%E7%BA%BF https://en.wikipedia.org/wiki/Precision_and_recall http://bryannotes.blogspot.tw/2015/06/precisionrecall.html https://argcv.com/articles/1036.c 閱讀完整內容
ubuntu 遠端連線設定 3月 14, 2016 安裝ssh #sudo apt-get install openssh-server 啟動ssh sudo /etc/init.d/ssh start 啟動/關閉 firewall sudo ufw enable sudo ufw disable 允許/不允許 port : 22 sudo ufw allow 22 or sudo ufw allow 22/tcp sudo ufw allow 22/udp sudo ufw deny 22 ubuntu 14 xrdp (port : 3389) 安裝 sudo apt-get install xrdp 啟動 sudo service xrdp start ubuntu 12.10 xrdp (port : 3389) 1. install xrdp sudo apt-get install xrdp 2. install fallback sudo apt-get install gnome-session-fallback 3. logout and login again by gnome theme. You can choose theme before log in.. 4. open terminal by ctrl alt t , then input echo "gnome-session --session=gnome" > ~/.xsession 5. sudo gedit /etec/xrdp/startwm.sh . /etc/X11/Xsession to . /home/<user name>/.xsession 6. sudo /etc/init.d/xrdp restart 安裝samba 主要能和windows share folder connection sudo apt-get install samba sudo service smbd start Reference : https://help.ubuntu.... 閱讀完整內容
GIT 備忘錄 3月 08, 2016 初次使用git必須設定 git config --global user.name "bozhen" git config --global user.email "bozhen@gmail.com" 選擇哪個目錄做 repository git init . 新增檔案 git add . 確定提交 git commit -m "hello" 推到雲端git git push <remote> <branch> 從雲端合併進本地 git pull == git fetch <remote name> git merge git pull <short name> <branch> 把別人雲端git 資料載下來 git clone <url> 新增遠端repository 顯示已存在repository git remote -v short name : 自行命名 git remote add <short name> <url> git diff --staged remove stage file git reset HEAD -- 刪除檔案 git rm '*.txt' 刪除XXXX分支 git branch -d xxxx 練習網站 https://try.github.io/levels/1/challenges/1 Reference : https://git-scm.com/book/en/v2 http://blog.miniasp.com/post/2013/08/18/Learning-Git-Part-1-Installation-Options-Tool-Usage-on-Local.aspx https://git-scm.com/book/zh-tw/v1/Git-%E5%9F%BA%E7%A4%8E-%E8%88%87%E9%81%A0%E7%AB%AF%E5%8D%... 閱讀完整內容
留言
張貼留言