XGBoost Regression Algorithm in Machine Learning | Python | XGBoost Algorithm

  Рет қаралды 12,682

Stats Wire

Stats Wire

Күн бұрын

Пікірлер: 23
@MuhammadKamran-ii4rh
@MuhammadKamran-ii4rh 3 жыл бұрын
Is it ok if after applying cross validation, we train the model on all X and Y???
@StatsWire
@StatsWire 3 жыл бұрын
No, because if your model will see all the data then how you will come to know how your model is going to perform on new unseen data? To check the performance of the model on unseen data we keep the test data aside. So you cannot use the data of all X and Y. I hope you are understanding what I am trying to say
@MuhammadKamran-ii4rh
@MuhammadKamran-ii4rh 3 жыл бұрын
Thank you very much for your kind response. Sorry sir I think I did not write my question much clear. Basically I wanna ask is it ok if we fit a model on all dataset and then test it on testing dataset.
@StatsWire
@StatsWire 3 жыл бұрын
@@MuhammadKamran-ii4rh Yes you can do that
@v1hana350
@v1hana350 2 жыл бұрын
I have a question about the Xgboost algorithm. The question is how parallelization works in the Xgboost algorithm and explain me with an example.
@StatsWire
@StatsWire 2 жыл бұрын
As per a blog, "The parallel computation takes place in the operation where the model scans through all features on each internal node and set a threshold. Say we have a 4-core CPU for the training computation, then XGBoost separate the features into 4 groups. For the splitting operation on a node, XGBoost distributes the operation on each feature to their corresponding core. The training data is stored in a piece of shared memory, each core only needs to access one group of features, and perform the computation individually."
@v1hana350
@v1hana350 2 жыл бұрын
@@StatsWire thanks for your information
@StatsWire
@StatsWire 2 жыл бұрын
@@v1hana350 You're welcome
@anmol_seth_xx
@anmol_seth_xx 2 жыл бұрын
Can you please tell the use of objective?
@StatsWire
@StatsWire 2 жыл бұрын
Hello, may I know which objective are you talking about?
@anmol_seth_xx
@anmol_seth_xx 2 жыл бұрын
“reg: squared error "
@anmol_seth_xx
@anmol_seth_xx 2 жыл бұрын
& and I also wanted to know why you have used whole X, y dataset in cross_val_score function?
@StatsWire
@StatsWire 2 жыл бұрын
@@anmol_seth_xx We want to check whether the mean squared error is low or high
@StatsWire
@StatsWire 2 жыл бұрын
@@anmol_seth_xx We can just use training dataset also.
@Izzworld_
@Izzworld_ 11 ай бұрын
I followed these steps and now I just want to know the accuracy of the model please can you tell me?
@StatsWire
@StatsWire 11 ай бұрын
You can try this: # Calculate accuracy accuracy = accuracy_score(y_test, y_pred) # Print the accuracy print("Accuracy:", accuracy)
@dhruv6433
@dhruv6433 Жыл бұрын
Why all my hyper parameters are none
@StatsWire
@StatsWire Жыл бұрын
Please change it manually
@goutamidas7427
@goutamidas7427 Жыл бұрын
Sir, it is showing, in the line 28 {from xgboost import XGBRegressor} AttributeError: partially initialized module 'xgboost' has no attribute 'DMatrix' (most likely due to a circular import) ​Please help me out. 🙏thank you in advance.
@StatsWire
@StatsWire Жыл бұрын
Please check if you were able to import the xgboost module or not.
Decision Tree Regression | Machine Learning | Python
13:57
Stats Wire
Рет қаралды 10 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
When to Use XGBoost
7:08
Super Data Science: ML & AI Podcast with Jon Krohn
Рет қаралды 6 М.
Learn Machine Learning Like a GENIUS and Not Waste Time
15:03
Infinite Codes
Рет қаралды 364 М.
XGBoost Made Easy | Extreme Gradient Boosting | AWS SageMaker
21:38
Prof. Ryan Ahmed
Рет қаралды 41 М.
Random Forest Classification | Machine Learning | Python
17:29
Stats Wire
Рет қаралды 36 М.
How to train XGBoost models in Python
18:57
Lianne and Justin
Рет қаралды 42 М.
Machine Learning Tutorial Python - 11  Random Forest
12:48
codebasics
Рет қаралды 385 М.