匿名用户2021年11月11日
58阅读
开发技术Python
所属分类人工智能、机器学习/深度学习
授权协议AGPL-3.0 License

作品详情

GeneralInformation

Supportvectormachines(SVMs)andrelatedkernel-basedlearningalgorithmsareawell-knownclassofmachinelearningalgorithms,fornon-parametricclassificationandregression.liquidSVMisanimplementationofSVMswhosekeyfeaturesare:

fullyintegratedhyper-parameterselection,extremespeedonbothsmallandlargedatasets,BindingsforR,Python,MATLAB/Octave,Java,andSpark,fullflexibilityforexperts,andinclusionofavarietyofdifferentlearningscenarios:multi-classclassification,ROC,andNeyman-Pearsonlearning,least-squares,quantile,andexpectileregression.

Forquestionsandcommentsjustcontactusviamail.Thereyoualsocanasktoberegisterdtoourmailinglist.

liquidSVMislicensedunderAGPL3.0.Incaseyouneedanotherlicense,pleasecontactme.

CommandLineinterface

Installationinstructionsforthecommandlineversions.

TerminalversionforLinux/OSXliquidSVM.tar.gzTerminalversionforWindows(64bit)avx2:liquidSVM.zipavx:liquidSVM.zipsse2:liquidSVM.zipPreviousversionsv1.1(June2016),v1.0(January2016)

OnLinuxandMacontheterminalliquidSVMcanbeusedinthefollowingway:

wgetwww.isa.uni-stuttgart.de/software/liquidSVM.tar.gztarxzfliquidSVM.tar.gzcdliquidSVMmakeallscripts/mc-svm.shbanana-mc12R

ReadthedemovignetteforatutorialoninstallingliquidSVM-packageandhowtouseitandthedocumentationvignetteformoreadvancedinstallationoptionsandusage.

Aneasyusageis:

install.packages("liquidSVM")library(liquidSVM)banana<-liquidData('banana-mc')model<-mcSVM(Y~.,banana$train,display=1,threads=2)result<-test(model,banana$test)errors(result)Python

ReadthedemonotebookforatutorialoninstallingliquidSVM-packageandhowtouseitandthehomepageformoreadvancedinstallationoptionsandusage.

Toinstalluse:

pipinstall--userliquidSVM

andtheninPythonyoucanuseite.g.like:

fromliquidSVMimport*banana=LiquidData('banana-mc')model=mcSVM(banana.train,display=1,threads=2)result,err=model.test(banana.test)MATLAB/Octave

TheMATLABbindingsarecurrentlygettingabetterinterface,andthisisapreviewversion.

ItdoescurrentlynotworkonWindows.

ForinstallationdownloadtheToolboxliquidSVM.mltbxandinstallitinMATLABbydoubleclickingit.Tocompileandaddpathsissue:

makeliquidSVMnative

Thenyoucanuseitlike:

banana=liquidData('banana-mc');model=svm_mc(banana.train,'DISPLAY',1,'THREADS',2);[result,err]=model.test(banana.test);

MostofthecodealsoworksinOctaveifyouuseliquidSVM-octave.zip.

Java

Themainhomepageishere.ForinstallationdownloadliquidSVM-java.zipandunzipit.Theclassesareallinpackagede.uni_stuttgart.isa.liquidsvmandaneasyexampleis:

LiquidDatabanana=newLiquidData("banana-mc");SVMmodel=newMC(banana.train,newConfig().display(1).threads(2));ResultAndErrorsresult=model.test(banana.test);

IfthisisimplementedinthefileExample.javathiscanbecompiledandrunusing

#ifyouwanttocompiletheJNI-nativelibrary:makelib#compileyourJava-Codejavac-classpathliquidSVM.jarExample.java#andrunitjava-Djava.library.path=.-cp.:liquidSVM.jarExampleSpark

Thisisapreviewversion,seeSparkformoredetails.DownloadliquidSVM-spark.zipandunzipit.AssumeyouhaveSparkinstalledin$SPARK_HOMEyoucanissue:

makelibexportLD_LIBRARY_PATH=.:$LD_LIBRARY_PATH$SPARK_HOME/bin/spark-submit\--classde.uni_stuttgart.isa.liquidsvm.spark.App\liquidSVM-spark.jarbanana-mc

IfyouhaveconfiguredSparktobeusedonaclusterwithHadoopuse:

hdfsdfs-putdata/covtype-full.train.csvdata/covtype-full.test.csv.makelib$SPARK_HOME/bin/spark-submit--files../libliquidsvm.so\--confspark.executor.extraLibraryPath=.\--confspark.driver.extraLibraryPath=.\--classde.uni_stuttgart.isa.liquidsvm.spark.App\--num-executors14liquidSVM-spark.jarcovtype-fullExtraDatasetsfortheDemo

covertypedatasetwith35.090trainingand34.910testsamples

covertypedatasetwith522.909trainingand58.103testsamples

BothdatasetswerecompiledfromLIBSVM'sversionofthecovertypedataset,whichinturnwastakenfromtheUCIrepositoryandpreprocessedasin[RC02a].CopyrightforthisdatasetisbyJockA.BlackardandColoradoStateUniversity.

Citation

IfyouuseliquidSVM,pleaseciteitas:

I.SteinwartandP.Thomann.liquidSVM:AfastandversatileSVMpackage.ArXive-prints1702.06899,February2017.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论