The answer to your question is yes you can provide identical results. when you configure in an identical way they provide identical results
Because sklear API is a wrapper of the native training API. this is again a wrapper c++ library.
It is your choice of choosing which to make use of. My personal advice to use sklearn API because of 2 advantages:
- You can use the entire sklearn toolkit.
- If there is any requirement of switching model then its easy with sklearn. for example, your input data is in the pd.DataFrame or np.ndarray. Since the training interface is the same you can easily switch models xgboost or vowpal or lightgbm by just creating a different object and passing the same procedure.
If you are a beginner and want to know more about Data Science the do check out the Data Science course