I am new to Julia (used with MATLAB). I am taking some datasets, cleaning it and encoding categorical variable using tools that are available in ScikitLearn then running XGBoost of the clean data.
However, I cannot make a prediction using by trained XGBoost model because both ScitkitLearn and XGBoost have a function named predict
. Refer to the error message below:
WARNING: both ScikitLearn and XGBoost export "predict"; uses of it in module Main must be qualified ERROR: LoadError: UndefVarError: predict not defined
The problem is that I can not define the predict
function for XGBoost as XGBoost.predict
because this does not work and it seems to be the only solution that I know of.
Further, I cannot find or understand how I can load only specific modules from ScikitLearn without loading the predict function. e.g, the format import MLDataUtils.splitobs
works for most packages but ScikitLearn.preprocessing
does not work.
import name_of_package: name_of_function_you_want, 2nd_function_you_want
I believe. Someone check me on this. – logankilpatrickpredict
. – Anshul Singhvi