Changing Attribute for Classifying

View: New views
13 Messages — Rating Filter:   Alert me  

Changing Attribute for Classifying

by E_n_r_i_c_O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

i need another help from you again.
In the classify i want to change Attribut from (Num) rain_sum as we could see in this pic


into (Nom) device5_wh like this


Can somebody please tell me how i can change the attribute??


Thank you..

Neural Network implementation in Weka

by Feras O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi ,
 
what is the name of the algorithm to use Neural Network  in Weka?
 
Regards,
 
Feras
 

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Neural Network implementation in Weka

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> what is the name of the algorithm to use Neural Network  in Weka?

weka.classifiers.functions.MultilayerPerceptron

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Changing Attribute for Classifying

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> i need another help from you again.
> In the classify i want to change Attribut from (Num) rain_sum as we could
> see in this pic
> http://old.nabble.com/file/p26230856/1.jpg
>
> into (Nom) device5_wh like this
> http://old.nabble.com/file/p26230856/2.jpg
>
> Can somebody please tell me how i can change the attribute??

I'm not quite sure what your problem is (if it's not about selecting a
different attribute from a combobox)...

Are you trying to change the class attribute from your own code? If
so, use the "setClassIndex(int)" method of the weka.core.Instances
class.

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

RE: Changing Attribute for Classifying

by E_n_r_i_c_O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Peter,

Thank you for your fast answer.

Now it worked just like i wanted.



bye,


Enrico


 
 




> From: fracpete@...
> Date: Sat, 7 Nov 2009 10:13:18 +1300
> Subject: Re: [Wekalist] Changing Attribute for Classifying
> To: wekalist@...
>
> > i need another help from you again.
> > In the classify i want to change Attribut from (Num) rain_sum as we could
> > see in this pic
> > http://old.nabble.com/file/p26230856/1.jpg
> >
> > into (Nom) device5_wh like this
> > http://old.nabble.com/file/p26230856/2.jpg
> >
> > Can somebody please tell me how i can change the attribute??
>
> I'm not quite sure what your problem is (if it's not about selecting a
> different attribute from a combobox)...
>
> Are you trying to change the class attribute from your own code? If
> so, use the "setClassIndex(int)" method of the weka.core.Instances
> class.
>
> Cheers, Peter
> --
> Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
> http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: Wekalist@...
> List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html


Chat online and in real-time with friends and family! Windows Live Messenger
_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Changing Attribute for Classifying

by E_n_r_i_c_O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Peter,

Thank you for your fast answer.

Now it worked just like i wanted.



bye,


Enrico



Re: Neural Network implementation in Weka

by Feras O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks Peter, you are doing a great job
 
Feras

--- On Fri, 11/6/09, Peter Reutemann <fracpete@...> wrote:

From: Peter Reutemann <fracpete@...>
Subject: Re: [Wekalist] Neural Network implementation in Weka
To: "Weka machine learning workbench list." <wekalist@...>
Date: Friday, November 6, 2009, 5:10 PM

> what is the name of the algorithm to use Neural Network  in Weka?

weka.classifiers.functions.MultilayerPerceptron

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette..html

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Calculation of Information gain in weka.

by Feras O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
Hi,
 
I am just wondering to how to get the information gain or gain ratio using weka. If there is any example explaining that being applied on arff files such Iris data or whatever will be very helpful.
 
I need to integrate this code if available within my codes
 
Cheers,
 
Feras

 

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Calculation of Information gain in weka.

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I am just wondering to how to get the information gain or gain ratio using weka. If there is any example explaining that being applied on arff files such Iris data or whatever will be very helpful.
>
> I need to integrate this code if available within my codes

info gain:
You could probably (ab-)use the
weka.attributeSelection.InfoGainAttributeEval class for that.

gain ratio:
The weka.core.ContingencyTables class has some code for computing the
gain ratio.

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Calculation of Information gain in weka.

by Feras O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Peter,
 
I was able to get the information gain for each attribute in Weka, Thanks.
 
Only one question remains:
Is there a possibilty to get the weight for each attribute in each class?
 
Info gain get the weight or the improtance for attribute in the whole dataset, but what about if we need to know the importance or weight for each attribute in each class?
 
Thanks,
 
Feras

 

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Calculation of Information gain in weka.

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I was able to get the information gain for each attribute in Weka, Thanks.

OK.

> Only one question remains:
> Is there a possibilty to get the weight for each attribute in each class?
>
> Info gain get the weight or the improtance for attribute in the whole dataset, but what about if we need to know the importance or weight for each attribute in each class?

No idea.

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Calculation of Information gain in weka.

by Mark Hall-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 25/11/09 4:46 AM, Feras wrote:
>
> Hi Peter,
> I was able to get the information gain for each attribute in Weka, Thanks.
> Only one question remains:
> Is there a possibilty to get the weight for each attribute in each class?
> Info gain get the weight or the improtance for attribute in the whole
> dataset, but what about if we need to know the importance or weight for
> each attribute in each class?

You would need to compute the entropy and/or gain for this on a per class basis
yourself.

Cheers,
Mark.


_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

Re: Calculation of Information gain in weka.

by Feras O :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You would need to compute the entropy and/or gain for this on a per class basis
yourself.
 Cheers,
Mark.

Hi Mark,
 
Any idea how? is it possible to send me one line of code
cheers,
 
Feras




--- On Tue, 11/24/09, Mark Hall <mhall@...> wrote:

From: Mark Hall <mhall@...>
Subject: Re: [Wekalist] Calculation of Information gain in weka.
To: "Weka machine learning workbench list." <wekalist@...>
Date: Tuesday, November 24, 2009, 3:38 PM

On 25/11/09 4:46 AM, Feras wrote:
>
> Hi Peter,
> I was able to get the information gain for each attribute in Weka, Thanks.
> Only one question remains:
> Is there a possibilty to get the weight for each attribute in each class?
> Info gain get the weight or the improtance for attribute in the whole
> dataset, but what about if we need to know the importance or weight for
> each attribute in each class?

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html