資源簡介
gridregression.py 是和前兩個一起用的,不過用它的時候(在libsvm中做最優參數選擇時)要注意將其里面的路徑改一下。
代碼片段和文件信息
#!/usr/bin/env?python
import?os?sys
import?Queue
import?getpass
import?re
from?sys?import?exit
from?threading?import?Thread
from?string?import?find?split?join?atof
from?time?import?sleep
is_win32?=?(sys.platform?==?‘win32‘)
#?svmtrain?and?gnuplot?executable
svmtrain_exe?=?“C:\libsvm-3.14\python\svm-train.exe“
gnuplot_exe?=?“C:\gnuplot\bin\gnuplot.exe“
#?example?for?windows
#?svmtrain_exe?=?r“c:\tmp\libsvm-2.4\windows\svmtrain.exe“
#?gnuplot_exe?=?r“c:\tmp\gp373w32\pgnuplot.exe“
#?global?parameters?and?their?default?values
fold?=?5
c_begin?c_end?c_step?=?10?15?1
g_begin?g_end?g_step?=??-10?0?1
p_begin?p_end?p_step?=??-8?-7?1
global?dataset_pathname?dataset_title?pass_through_string
global?out_filename?png_filename
#?experimental
ssh_workers?=?[]
#?ssh_workers?=?[‘linux1‘‘linux1‘‘linux2‘‘linux2‘‘linux3‘?‘linux4‘?‘linux6‘‘linux7‘‘linux8‘‘linux8‘‘linux9‘‘linux10‘‘linux11‘‘linux12‘]
nr_local_worker?=?1
#?process?comm
- 上一篇:AES加解密
- 下一篇:Cisco Unify Call Manager 6.0.1
評論
共有 條評論