<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Dear Ta Hoang,<br><br></div>GPU processing can be done with Python libraries such as TensorFlow, Keras, or Theano.<br></div><br></div>However, sklearn's implementation of RandomForestClassifier is outstandingly fast, and a previous effort to develop GPU RandomForest abandoned their efforts as a result:<br><a href="https://github.com/EasonLiao/CudaTree">https://github.com/EasonLiao/CudaTree</a><br><br></div>If you need to speed up predictions because of a large dataset, you can combine joblib with sklearn to utilize parallelize the predictions of the individual trees:<br></div>####<br>from joblib import Parallel, delayed<br>...<br></div>predictions = Parallel(n_jobs=n, backend=backend)(delayed(your_forest_prediction_func)(func_arguments) for tree_group in tree_groups))<br>####<br></div>where, n is how many parallel computations you want to execute, and backend is either "threading" or "multiprocessing".<br></div><div>Typically, your_forest_predict_func() would iterate over the collection of trees and prediction objects given in func_arguments using a single thread/process.<br><br></div>Hope this helps you parallelize and speed-up.<br><br></div><div>Sincerely,<br></div>J.B. Brown<br></div>Kyoto University Graduate School of Medicine<br><div><div><div><div><div><div><div><br><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-08-09 9:50 GMT+09:00 hoang trung Ta <span dir="ltr"><<a href="mailto:tahoangtrung@gmail.com" target="_blank">tahoangtrung@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all members,<div><br></div><div>I am using Random forest for classification satellite images. I have a bunch of images, thus the processing is quite slow. I searched on the Internet and they said that GPU can accelerate the process. </div><div><br></div><div>I have GPU NDVIA Geforce GTX 1080 Ti installed in the computer</div><div><br></div><div>Do you know how to use GPU in Scikit learn, I mean the packages to use and sample code that used GPU in random forest classification?</div><div><br></div><div>Thank you very much<br clear="all"><div><br></div>-- <br><div class="m_-1187941079202697049gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font color="#666666">Ta Hoang Trung (Mr)</font></b></div><div dir="ltr"><font color="#666666"><b><br></b></font></div><div><font color="#666666"><i>Master student</i></font></div><div><font color="#666666">Graduate School of Life and Environmental Sciences</font></div><div><font color="#666666">University of Tsukuba, Japan</font></div><div><font color="#666666"><br></font></div><div><font color="#666666">Mobile:  +81 70 3846 2993</font></div><div><font color="#666666">Email : </font><span style="font-size:12.8px;color:rgb(102,102,102)"> </span><span style="color:rgb(102,102,102);font-size:12.8px"><a href="mailto:ta.hoang-trung.xm@alumni.tsukuba.ac.jp" target="_blank">ta.hoang-trung.xm@alumni.<wbr>tsukuba.ac.jp</a></span></div><div><font color="#666666">             <a href="mailto:tahoangtrung@gmail.com" target="_blank">tahoangtrung@gmail.com</a></font></div><div><font color="#666666">            </font><span style="font-size:12.8px;color:rgb(102,102,102)"> </span><a href="mailto:s1626066@u.tsukuba.ac.jp" style="font-size:12.8px" target="_blank">s1626066@u.tsukuba.ac.jp</a></div><div dir="ltr"><font color="#666666"><b>----<br></b></font><div><font color="#666666"><i>Mapping Technician</i><br></font><div><font color="#666666">Department of Surveying and Mapping </font><span style="color:rgb(102,102,102);font-size:12.8px">Vietnam</span></div><div><font color="#666666">No 2, Dang Thuy Tram street, Hanoi, Viet Nam</font></div><div><font color="#666666"><br></font></div></div><div><font color="#666666">Mobile: +84 1255151344</font></div><div><font color="#666666">Email : <a href="mailto:tahoangtrung@gmail.com" target="_blank">tahoangtrung@gmail.com</a></font></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div>