2008年5月27日
如何Execute時輸入參數, 讓NetBeans執行有參數的程式
在Categories:底下選擇 Run
右邊介面即出現 Arguments: (這裡就是下參數的地方)
標籤:
Tools
LIBLINEAR -- A Library for Large Linear Classification
http://eason982.blogspot.com/2008/05/liblinear-library-for-large-linear.html
IntroductionLIBLINEAR is a linear classifier for data with millions of instances and features. It supports L2-regularized logistic regression (LR), L2-loss linear SVM, and L1-loss linear SVM.
The approach for L1-SVM and L2-SVM is a coordinate descent method:
C.-J. Hsieh, K.-W. Chang, C.-J. Lin, S. S. Keerthi, and S. Sundararajan. A dual coordinate descent method for large-scale linear SVM. ICML 2008.
Main features of LIBLINEAR include
1) Same data format as LIBSVM, our general-purpose SVM solver, and also similar usage
2) One-vs-the rest multi-class classification
3) Cross validation for model selection
4) Probability estimates (logistic regression only)
5) Weights for unbalanced data
6) MATLAB/Octave interface
When to use LIBLINEAR but not LIBSVM
There are some large data for which with/without nonlinear mappings gives similar performances. Without using kernels, one can train a much larger set via a linear classifier. Document classification is one such application. In the following example (20,242 instances and 47,236 features; available on LIBSVM data sets), the cross-validation time is significantly reduced by using LIBLINEAR:
% time libsvm-2.85/svm-train -c 4 -t 0 -e 0.1 -m 800 -v 5 rcv1_train.binary
Cross Validation Accuracy = 96.8136%
345.569s
% time liblinear-1.21/train -c 4 -e 0.1 -v 5 rcv1_train.binary
Cross Validation Accuracy = 97.0161%
2.944s
Download LIBLINEAR
Here you can get it! http://0rz.tw/9748Y
The package includes the source code in C/C++. A README file with detailed explanation is provided. For MS Windows users, there is a subdirectory in the zip file containing binary executable files.
標籤:
Tools
Netbeans5.5 的 encoding
http://eason982.blogspot.com/2008/05/netbeans55-encoding.html
Tools-->Options-->Advanced Options-->Edting-->Java Sources-->Default Encoding
Default Encoding.
Specifies the default encoding that the IDE uses to display and save .java
files. Type an encoding name or leave blank to use your system's default
encoding.This setting does not affect the encoding used to compile classes
in the IDE
標籤:
Tools
NetBeans快速鍵
http://eason982.blogspot.com/2008/05/netbeans.html
切換分頁 Alt+左、右切換視窗 Ctrl+數字
find class Shift+Alt+O
移到某行 Ctrl+G
其他:觀看 Source & Refactor
Ctrl + G:Go to Line (與 eclipse 一樣)
Alt + Shift + O:Go to Class
Alt + O:Go to Source
Ctrl + B:Go to Super Implementation
Alt + F7:Find Usages
Ctrl + F:Find
Ctrl + H:Replace
Ctrl + Shift + P:Find in projects
Ctrl + Shift + 1:Select in project
Shift + F3:Find Previous
F3:Find Next
常用快速鍵
Shift + F1: 開啟Java doc搜尋
Ctrl + 7:導覽窗
Ctrl + 0:編輯窗
Ctrl + 1:專案窗
Ctrl + 2:檔案窗
Ctrl + 2:輸出窗
Alt + Shift + R:rename, 改名稱 (與 eclipse 一樣)
Alt + Shift + F:Fix Imports, 自動 Import
Alt + Shift + W:Surround With try-catch, 自動 try catch
Alt + 左,右 :切換來源檔
Alt + Enter :建議與修正
Ctrl + Shift + F:Reformat Code,自動排版 (與 eclipse 一樣)
Ctrl + Shift + T:Comment, 註解
Ctrl + Shift + D:Uncomment, 反註解
Ctrl + F3:Find Selection,搜尋選擇的字串
Ctrl + l or k :自動完成字串
sout + white space : Code template
更改介面字型:
在啟動捷徑裡面,設定起始參數
加上 --fontsize 12 看起來字會比較大
加上 --laf javax.swing.plat.metal.MetalLookAndFeel 字會比較美觀
其他修改界面風格
SunONE Studio 5中文版默認啟動時的界面風格是metal的(也就是java的那種風格),可
以按照swing程序的標準修改方式進
行更換,如更換為windows風格等,如下:
更換為windows風格: --laf com.sun.java.swing.plaf.windows.WindowsLookAndFeel
更換為metal風格(默認): --laf javax.swing.plaf.metal.MetalLookAndFeel
更換為motif風格: --laf com.sun.java.swing.plaf.motif.MotifLookAndFeel
更換為mac風格: --laf com.sun.java.swing.plaf.mac.MacLookAndFeel
更換為GTK風格: --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
標籤:
Tools
2007年10月21日
Decompiler for Java
http://eason982.blogspot.com/2007/10/decompiler-for-java.html
//Decompile *.class(in *.jar) to *.java Download Site: Here!
標籤:
Tools
訂閱:
文章 (Atom)