Re: XGBoost Installation

Eibe Frank <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <CADehzLXKnEjyVA77JwXcHfzdQ29qmbfGXV1U9v9zwwb6JdJPgQ@mail.gmail.com>
You cannot set environment variables, etc., in WEKA's built-in CLI, which
is really quite primitive and only pretends to be a proper OS terminal! You
need to run the command in the macOS terminal. However, as I said, you
should not set R_HOME explicitly unless you have installed R in a
non-standard location. WEKA's RPlugin will find R on the Mac if it is
installed in the standard place.

Cheers,
Eibe

On Sat, Jun 5, 2021 at 1:43 PM Prakash Bhagat <[email protected]>
wrote:

> Yes, I have followed this guide:
> https://riptutorial.com/weka/topic/7916/how-to-use-r-in-weka
> I pasted this in the command line in WEKA: export
> R_HOME=/Library/Frameworks/R.framework/Resources
> java -Xss10M -Xmx4096M -cp .:weka.jar weka.gui.GUIChooser
>
> And this is the error from weka:
>
> Kind regards,
> Prakash
>
>
>
> On 04 Jun,2021, at 13:52, Eibe Frank <[email protected]> wrote:
>
> Are you still running WEKA with R_HOME set to some value? It is normally
> best to let WEKA set the value of R_HOME itself.
>
> If there are any error messages shown in the terminal from which you run
> WEKA, it would be useful to share those.
>
> Cheers,
> Eibe
>
> On Fri, Jun 4, 2021 at 11:43 PM Prakash Bhagat <
> [email protected]> wrote:
>
>> https://github.com/SigDelta/weka-xgboost/releases - This is the link I
>> used to download xgboost.
>> Using this downloaded I installed xgboost as an unofficial package in
>> tools. It then comes under trees however does not run.
>>
>> With the RPlugin the MLR classifier is unavailable to use. I have
>> downloaded a new version of R and within R I also downloaded the MLR
>> package. This still however does not run.
>> I have installed rJava within R as well.
>> <Screenshot 2021-06-04 at 11.51.31.png>
>>
>> On 04 Jun,2021, at 11:07, Eibe Frank <[email protected]> wrote:
>>
>> Which unofficial version do you mean? Both, RPlugin and wekaPython, are
>> official packages, and both enable you to use XGBoost. With the RPlugin,
>> you need to use XGBoost through the MLRClassifier and select XGBoost as the
>> base learner (the first time you select this base learner, it will try to
>> install it in R, which may take a while). Similarly, with wekaPython, you
>> also need to use the corresponding ScikitLearnClassifier in WEKA with
>> XGBoost as the base learner (and you need to have XGBoost installed in your
>> relevant Python environment, which you may need to do manually).
>>
>> The easiest way to use XGBoost in WEKA is probably through the RPlugin
>> because the only manual work you (normally) need to do is to install R.
>>
>> There might be an unofficial WEKA package for XGBoost out there, but it
>> may not be maintained.
>>
>> Cheers,
>> Eibe
>>
>>
>> On Fri, Jun 4, 2021 at 4:49 PM <[email protected]> wrote:
>>
>>> Dear All,
>>>
>>> I have a mac with the latest version of R and python installed. I am
>>> using WEKA for an assignment and need to use XGBoost.
>>> I have tried downloading the unofficial version as a package however
>>> that does not work.
>>> I then tried the R Plugin version downloading RPlugin and pasting this
>>> in the command line in WEKA:
>>> export R_HOME=/Library/Frameworks/R.framework/Resources
>>> java -Xss10M -Xmx4096M -cp .:weka.jar weka.gui.GUIChoose
>>>
>>> This however did not work either and R does not run.
>>>
>>> If anyone has a very specific step-by-step guide to getting XGBoost on
>>> macOS please let me know!
>>>
>>> Kind regards,
>>> PYB
>>> _______________________________________________
>>> Wekalist mailing list -- [email protected]
>>> Send posts to [email protected]
>>> To unsubscribe send an email to [email protected]
>>> To subscribe, unsubscribe, etc., visit
>>> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
>>> List etiquette:
>>> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>>>
>> _______________________________________________
>> Wekalist mailing list -- [email protected]
>> Send posts to [email protected]
>> To unsubscribe send an email to [email protected]
>> To subscribe, unsubscribe, etc., visit
>> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
>> List etiquette:
>> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>>
>>
>> _______________________________________________
>> Wekalist mailing list -- [email protected]
>> Send posts to [email protected]
>> To unsubscribe send an email to [email protected]
>> To subscribe, unsubscribe, etc., visit
>> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
>> List etiquette:
>> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>>
> _______________________________________________
> Wekalist mailing list -- [email protected]
> Send posts to [email protected]
> To unsubscribe send an email to [email protected]
> To subscribe, unsubscribe, etc., visit
> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
> List etiquette:
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>
>
> _______________________________________________
> Wekalist mailing list -- [email protected]
> Send posts to [email protected]
> To unsubscribe send an email to [email protected]
> To subscribe, unsubscribe, etc., visit
> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
> List etiquette:
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
>

_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Screenshot 2021-06-04 at 14.02.40.png (image/png, 299 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.