Ignore:
Timestamp:
08/22/13 20:23:29 (8 months ago)
Author:
Björn Esser <bjoern.esser@…>
Branch:
default
committer:
426ac3b6726e204573736572203c626a6f65726e2e657373657240676d61696c2e636f6d3e2031333737323834343333202d37323030
Message:

Updated the included LIBLINEAR to version 1.93.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/liblinear/linear.h

    r8978 r11670  
    1515{ 
    1616    int l, n; 
    17     int *y; 
     17    double *y; 
    1818    struct feature_node **x; 
    1919    double bias;            /* < 0 if no bias term */   
    2020}; 
    2121 
    22 enum { L2R_LR, L2R_L2LOSS_SVC_DUAL, L2R_L2LOSS_SVC, L2R_L1LOSS_SVC_DUAL, MCSVM_CS, L1R_L2LOSS_SVC, L1R_LR, L2R_LR_DUAL }; /* solver_type */ 
     22enum { L2R_LR, L2R_L2LOSS_SVC_DUAL, L2R_L2LOSS_SVC, L2R_L1LOSS_SVC_DUAL, MCSVM_CS, L1R_L2LOSS_SVC, L1R_LR, L2R_LR_DUAL, L2R_L2LOSS_SVR = 11, L2R_L2LOSS_SVR_DUAL, L2R_L1LOSS_SVR_DUAL }; /* solver_type */ 
    2323 
    2424struct parameter 
     
    3232    int *weight_label; 
    3333    double* weight; 
     34    double p; 
    3435}; 
    3536 
     
    4546 
    4647struct model* train(const struct problem *prob, const struct parameter *param); 
    47 void cross_validation(const struct problem *prob, const struct parameter *param, int nr_fold, int *target); 
     48void cross_validation(const struct problem *prob, const struct parameter *param, int nr_fold, double *target); 
    4849 
    49 int predict_values(const struct model *model_, const struct feature_node *x, double* dec_values); 
    50 int predict(const struct model *model_, const struct feature_node *x); 
    51 int predict_probability(const struct model *model_, const struct feature_node *x, double* prob_estimates); 
     50double predict_values(const struct model *model_, const struct feature_node *x, double* dec_values); 
     51double predict(const struct model *model_, const struct feature_node *x); 
     52double predict_probability(const struct model *model_, const struct feature_node *x, double* prob_estimates); 
    5253 
    5354int save_model(const char *model_file_name, const struct model *model_); 
Note: See TracChangeset for help on using the changeset viewer.