@@ -96,24 +96,24 @@ func initialization() error {
9696 return fmt .Errorf ("%w `%s`: %s" , ErrLoadLibrary , catboostSharedLibraryPath , msg )
9797 }
9898
99- l := library {handle }
99+ lib := library {handle }
100100
101101 // Load function from CatBoost shared library
102- l .RegisterFn ("ModelCalcerCreate" )
103- l .RegisterFn ("LoadFullModelFromBuffer" )
104- l .RegisterFn ("CalcModelPredictionSingle" )
105- l .RegisterFn ("CalcModelPrediction" )
106- l .RegisterFn ("GetErrorString" )
107- l .RegisterFn ("GetFloatFeaturesCount" )
108- l .RegisterFn ("GetCatFeaturesCount" )
109- l .RegisterFn ("GetDimensionsCount" )
110- l .RegisterFn ("SetPredictionTypeString" )
111- l .RegisterFn ("GetModelUsedFeaturesNames" )
112- l .RegisterFn ("GetModelInfoValue" )
113- l .RegisterFn ("GetCatFeatureIndices" )
114- l .RegisterFn ("GetFloatFeatureIndices" )
115- l .RegisterFn ("GetSupportedEvaluatorTypes" )
116- l .RegisterFn ("EnableGPUEvaluation" )
102+ lib .RegisterFn ("ModelCalcerCreate" )
103+ lib .RegisterFn ("LoadFullModelFromBuffer" )
104+ lib .RegisterFn ("CalcModelPredictionSingle" )
105+ lib .RegisterFn ("CalcModelPrediction" )
106+ lib .RegisterFn ("GetErrorString" )
107+ lib .RegisterFn ("GetFloatFeaturesCount" )
108+ lib .RegisterFn ("GetCatFeaturesCount" )
109+ lib .RegisterFn ("GetDimensionsCount" )
110+ lib .RegisterFn ("SetPredictionTypeString" )
111+ lib .RegisterFn ("GetModelUsedFeaturesNames" )
112+ lib .RegisterFn ("GetModelInfoValue" )
113+ lib .RegisterFn ("GetCatFeatureIndices" )
114+ lib .RegisterFn ("GetFloatFeatureIndices" )
115+ lib .RegisterFn ("GetSupportedEvaluatorTypes" )
116+ lib .RegisterFn ("EnableGPUEvaluation" )
117117
118118 return nil
119119}
0 commit comments