lib/xgboost/ffi.rb in xgb-0.8.0 vs lib/xgboost/ffi.rb in xgb-0.9.0

- old
+ new

@@ -20,12 +20,16 @@ attach_function :XGBGetLastError, %i[], :string # dmatrix attach_function :XGDMatrixCreateFromMat, %i[pointer uint64 uint64 float pointer], :int attach_function :XGDMatrixSetUIntInfo, %i[pointer string pointer uint64], :int + attach_function :XGDMatrixSetStrFeatureInfo, %i[pointer string pointer uint64], :int + attach_function :XGDMatrixGetStrFeatureInfo, %i[pointer string pointer pointer], :int attach_function :XGDMatrixNumRow, %i[pointer pointer], :int attach_function :XGDMatrixNumCol, %i[pointer pointer], :int + attach_function :XGDMatrixNumNonMissing, %i[pointer pointer], :int + attach_function :XGDMatrixDataSplitMode, %i[pointer pointer], :int attach_function :XGDMatrixSliceDMatrix, %i[pointer pointer uint64 pointer], :int attach_function :XGDMatrixFree, %i[pointer], :int attach_function :XGDMatrixSaveBinary, %i[pointer string int], :int attach_function :XGDMatrixSetFloatInfo, %i[pointer string pointer uint64], :int attach_function :XGDMatrixGetFloatInfo, %i[pointer string pointer pointer], :int @@ -33,15 +37,20 @@ # booster attach_function :XGBoosterCreate, %i[pointer int pointer], :int attach_function :XGBoosterUpdateOneIter, %i[pointer int pointer], :int attach_function :XGBoosterEvalOneIter, %i[pointer int pointer pointer uint64 pointer], :int attach_function :XGBoosterFree, %i[pointer], :int + attach_function :XGBoosterBoostedRounds, %i[pointer pointer], :int attach_function :XGBoosterSetParam, %i[pointer string string], :int + attach_function :XGBoosterGetNumFeature, %i[pointer pointer], :int attach_function :XGBoosterPredict, %i[pointer pointer int int int pointer pointer], :int attach_function :XGBoosterLoadModel, %i[pointer string], :int attach_function :XGBoosterSaveModel, %i[pointer string], :int + attach_function :XGBoosterSaveJsonConfig, %i[pointer pointer pointer], :int attach_function :XGBoosterDumpModelExWithFeatures, %i[pointer int pointer pointer int string pointer pointer], :int - attach_function :XGBoosterGetAttr, %i[pointer pointer pointer pointer], :int - attach_function :XGBoosterSetAttr, %i[pointer pointer pointer], :int + attach_function :XGBoosterGetAttr, %i[pointer string pointer pointer], :int + attach_function :XGBoosterSetAttr, %i[pointer string string], :int attach_function :XGBoosterGetAttrNames, %i[pointer pointer pointer], :int + attach_function :XGBoosterSetStrFeatureInfo, %i[pointer string pointer uint64], :int + attach_function :XGBoosterGetStrFeatureInfo, %i[pointer string pointer pointer], :int end end