libsvm

Search:
Group by:

Types

Enum_svmh1 = distinct int
Enum_svmh2 = distinct int
svm_node {...}{.importc: "struct svm_node", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
          bycopy.} = object
  index*: cint
  value*: cdouble
svm_problem {...}{.importc: "struct svm_problem", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
             bycopy.} = object
  l*: cint
  y*: ptr cdouble
  x*: ptr ptr svm_node
svm_parameter {...}{.importc: "struct svm_parameter", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
               bycopy.} = object
  svm_type*: cint
  kernel_type*: cint
  degree*: cint
  gamma*: cdouble
  coef0*: cdouble
  cache_size*: cdouble
  eps*: cdouble
  C*: cdouble
  nr_weight*: cint
  weight_label*: ptr cint
  weight*: ptr cdouble
  nu*: cdouble
  p*: cdouble
  shrinking*: cint
  probability*: cint
svm_model {...}{.importc: "struct svm_model", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
           bycopy.} = object
  param*: svm_parameter
  nr_class*: cint
  l*: cint
  SV*: ptr ptr svm_node
  sv_coef*: ptr ptr cdouble
  rho*: ptr cdouble
  probA*: ptr cdouble
  probB*: ptr cdouble
  sv_indices*: ptr cint
  label*: ptr cint
  nSV*: ptr cint
  free_sv*: cint

Consts

LIBSVM_VERSION = 323
C_SVC = 0
NU_SVC = 1
ONE_CLASS = 2
EPSILON_SVR = 3
NU_SVR = 4
LINEAR = 0
POLY = 1
RBF = 2
SIGMOID = 3
PRECOMPUTED = 4

Procs

proc `+`(x475184: Enum_svmh1; y475185: int): Enum_svmh1 {...}{.borrow.}
proc `+`(x475186: int; y475187: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `+`(x475188, y475189: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `-`(x475198: Enum_svmh1; y475199: int): Enum_svmh1 {...}{.borrow.}
proc `-`(x475200: int; y475201: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `-`(x475202, y475203: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `*`(x475212: Enum_svmh1; y475213: int): Enum_svmh1 {...}{.borrow.}
proc `*`(x475214: int; y475215: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `*`(x475216, y475217: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `<`(x475226: Enum_svmh1; y475227: int): bool {...}{.borrow.}
proc `<`(x475228: int; y475229: Enum_svmh1): bool {...}{.borrow.}
proc `<`(x475230, y475231: Enum_svmh1): bool {...}{.borrow.}
proc `<=`(x475240: Enum_svmh1; y475241: int): bool {...}{.borrow.}
proc `<=`(x475242: int; y475243: Enum_svmh1): bool {...}{.borrow.}
proc `<=`(x475244, y475245: Enum_svmh1): bool {...}{.borrow.}
proc `==`(x475254: Enum_svmh1; y475255: int): bool {...}{.borrow.}
proc `==`(x475256: int; y475257: Enum_svmh1): bool {...}{.borrow.}
proc `==`(x475258, y475259: Enum_svmh1): bool {...}{.borrow.}
proc `div`(x475268: Enum_svmh1; y475269: int): Enum_svmh1 {...}{.borrow.}
proc `div`(x475270: int; y475271: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `div`(x475272, y475273: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `mod`(x475282: Enum_svmh1; y475283: int): Enum_svmh1 {...}{.borrow.}
proc `mod`(x475284: int; y475285: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `mod`(x475286, y475287: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `shl`(x475151: Enum_svmh1; y475152: int): Enum_svmh1 {...}{.borrow.}
proc `shl`(x475153: int; y475154: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `shl`(x475155, y475156: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `shr`(x475157: Enum_svmh1; y475158: int): Enum_svmh1 {...}{.borrow.}
proc `shr`(x475159: int; y475160: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `shr`(x475161, y475162: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `or`(x475163: Enum_svmh1; y475164: int): Enum_svmh1 {...}{.borrow.}
proc `or`(x475165: int; y475166: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `or`(x475167, y475168: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `and`(x475169: Enum_svmh1; y475170: int): Enum_svmh1 {...}{.borrow.}
proc `and`(x475171: int; y475172: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `and`(x475173, y475174: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `xor`(x475175: Enum_svmh1; y475176: int): Enum_svmh1 {...}{.borrow.}
proc `xor`(x475177: int; y475178: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `xor`(x475179, y475180: Enum_svmh1): Enum_svmh1 {...}{.borrow.}
proc `$`(x475181: Enum_svmh1): string {...}{.borrow.}
proc `+`(x475401: Enum_svmh2; y475402: int): Enum_svmh2 {...}{.borrow.}
proc `+`(x475403: int; y475404: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `+`(x475405, y475406: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `-`(x475415: Enum_svmh2; y475416: int): Enum_svmh2 {...}{.borrow.}
proc `-`(x475417: int; y475418: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `-`(x475419, y475420: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `*`(x475429: Enum_svmh2; y475430: int): Enum_svmh2 {...}{.borrow.}
proc `*`(x475431: int; y475432: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `*`(x475433, y475434: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `<`(x475443: Enum_svmh2; y475444: int): bool {...}{.borrow.}
proc `<`(x475445: int; y475446: Enum_svmh2): bool {...}{.borrow.}
proc `<`(x475447, y475448: Enum_svmh2): bool {...}{.borrow.}
proc `<=`(x475457: Enum_svmh2; y475458: int): bool {...}{.borrow.}
proc `<=`(x475459: int; y475460: Enum_svmh2): bool {...}{.borrow.}
proc `<=`(x475461, y475462: Enum_svmh2): bool {...}{.borrow.}
proc `==`(x475471: Enum_svmh2; y475472: int): bool {...}{.borrow.}
proc `==`(x475473: int; y475474: Enum_svmh2): bool {...}{.borrow.}
proc `==`(x475475, y475476: Enum_svmh2): bool {...}{.borrow.}
proc `div`(x475485: Enum_svmh2; y475486: int): Enum_svmh2 {...}{.borrow.}
proc `div`(x475487: int; y475488: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `div`(x475489, y475490: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `mod`(x475499: Enum_svmh2; y475500: int): Enum_svmh2 {...}{.borrow.}
proc `mod`(x475501: int; y475502: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `mod`(x475503, y475504: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `shl`(x475368: Enum_svmh2; y475369: int): Enum_svmh2 {...}{.borrow.}
proc `shl`(x475370: int; y475371: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `shl`(x475372, y475373: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `shr`(x475374: Enum_svmh2; y475375: int): Enum_svmh2 {...}{.borrow.}
proc `shr`(x475376: int; y475377: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `shr`(x475378, y475379: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `or`(x475380: Enum_svmh2; y475381: int): Enum_svmh2 {...}{.borrow.}
proc `or`(x475382: int; y475383: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `or`(x475384, y475385: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `and`(x475386: Enum_svmh2; y475387: int): Enum_svmh2 {...}{.borrow.}
proc `and`(x475388: int; y475389: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `and`(x475390, y475391: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `xor`(x475392: Enum_svmh2; y475393: int): Enum_svmh2 {...}{.borrow.}
proc `xor`(x475394: int; y475395: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `xor`(x475396, y475397: Enum_svmh2): Enum_svmh2 {...}{.borrow.}
proc `$`(x475398: Enum_svmh2): string {...}{.borrow.}
proc train(prob: ptr svm_problem; param: ptr svm_parameter): ptr svm_model {...}{.
    importc: "svm_train", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc cross_validation(prob: ptr svm_problem; param: ptr svm_parameter; nr_fold: cint;
                     target: ptr cdouble) {...}{.importc: "svm_cross_validation", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc save_model(model_file_name: cstring; model: ptr svm_model): cint {...}{.
    importc: "svm_save_model", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc load_model(model_file_name: cstring): ptr svm_model {...}{.importc: "svm_load_model", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc get_type(model: ptr svm_model): cint {...}{.importc: "svm_get_svm_type", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
                                       cdecl.}
proc get_nr_class(model: ptr svm_model): cint {...}{.importc: "svm_get_nr_class", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc get_labels(model: ptr svm_model; label: ptr cint) {...}{.importc: "svm_get_labels", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc get_sv_indices(model: ptr svm_model; sv_indices: ptr cint) {...}{.
    importc: "svm_get_sv_indices", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc get_nr_sv(model: ptr svm_model): cint {...}{.importc: "svm_get_nr_sv", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
                                        cdecl.}
proc get_svr_probability(model: ptr svm_model): cdouble {...}{.
    importc: "svm_get_svr_probability", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc predict_values(model: ptr svm_model; x: ptr svm_node; dec_values: ptr cdouble): cdouble {...}{.
    importc: "svm_predict_values", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc predict(model: ptr svm_model; x: ptr svm_node): cdouble {...}{.importc: "svm_predict", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc predict_probability(model: ptr svm_model; x: ptr svm_node;
                        prob_estimates: ptr cdouble): cdouble {...}{.
    importc: "svm_predict_probability", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc free_model_content(model_ptr: ptr svm_model) {...}{.
    importc: "svm_free_model_content", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc free_and_destroy_model(model_ptr_ptr: ptr ptr svm_model) {...}{.
    importc: "svm_free_and_destroy_model", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc destroy_param(param: ptr svm_parameter) {...}{.importc: "svm_destroy_param", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc check_parameter(prob: ptr svm_problem; param: ptr svm_parameter): cstring {...}{.
    importc: "svm_check_parameter", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}
proc check_probability_model(model: ptr svm_model): cint {...}{.
    importc: "svm_check_probability_model", header: "/home/genotrance/Dropbox/Private/github/wrappers/libsvm/build/svm.h",
    cdecl.}