91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.72KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-03-26
  • 語言: 其他
  • 標簽: 其他??

資源簡介


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

評論

共有 條評論