XGBoost Guide
Overview
- XGBoost is a powerful machine learning algorithm especially where speed and accuracy are concerned
- We need to consider different parameters and their values to be specified while implementing an XGBoost model
- The XGBoost model requires parameter tuning to improve and fully leverage its advantages over other algorithms
Introduction
If things don't go your way in predictive modeling, use XGboost. XGBoost algorithm has become the ultimate weapon of many data scientist. It's a highly sophisticated algorithm, powerful enough to deal with all sorts of irregularities of data.
Building a model using XGBoost is easy. But, improving the model using XGBoost is difficult (at least I struggled a lot). This algorithm uses multiple parameters. To improve the model, parameter tuning is must. It is very difficult to get answers to practical questions like – Which set of parameters you should tune ? What is the ideal value of these parameters to obtain optimal output ?
This article is best suited to people who are new to XGBoost. In this article, we'll learn the art of parameter tuning along with some useful information about XGBoost. Also, we'll practice this algorithm using a data set in Python.
Are you a beginner in Machine Learning? Do you want to master the machine learning algorithms like Random Forest and XGBoost? Here is a comprehensive course covering the machine learning and deep learning algorithms in detail –
- ubutun
- docker
sudo snap install docker
- docker install MongoDB image
sudo docker pull mongo:latest
- create docker-compose.yml in /HOME
- start docker container
docker-compose up -d
- go into mongodb
docker-compose exec mongo bash mongo admin -u cbre -p
Note: you can do it in docker, but i suggest you do it from GUI client
show databases use deal -- show tables show collections db.hoge.insert({ name: "test" }) db.hoge.find() ... exit
-
access from python
- the sample code main.py
from pymongo import MongoClient # use docker image name instead of the hostname client = MongoClient('mongo', 27017)
- stop the container
docker-compose down
the reference https://qiita.com/mistolteen/items/ce38db7981cc2fe7821a
- install mongodbsqld
https://docs.mongodb.com/bi-connector/master/tutorial/install-bi-connector-debian/
mongosqld install --config /root/mongodb-bi-linux-x86_64-ubuntu1804-v2.13.4/example-mongosqld-config.yml
mongosql service installed
root@ip-10-0-0-6:~/mongodb-bi-linux-x86_64-ubuntu1804-v2.13.4#
systemctl start mongosql.service
systemctl enable mongosql.service
tail -f /var/log/mongosqld.log
- setup ssl for mongodbsdqld
https://docs.mongodb.com/bi-connector/current/tutorial/ssl-setup/