Re: Generic logic/conditional class or library for classification of data

2007-04-03 Thread [EMAIL PROTECTED]
On Apr 3, 5:43 am, "Basilisk96" <[EMAIL PROTECTED]> wrote: > Thanks for the help, guys. > Dictionaries to the rescue! > > Steven, it's certainly true that runtime creation of attributes does > not fit well here. At some point, an application needs to come out of > generics and deal with logic that

Re: Generic logic/conditional class or library for classification of data

2007-04-02 Thread Basilisk96
Thanks for the help, guys. Dictionaries to the rescue! Steven, it's certainly true that runtime creation of attributes does not fit well here. At some point, an application needs to come out of generics and deal with logic that is specific to the problem. The example I gave was classification of b

Re: Generic logic/conditional class or library for classification of data

2007-04-01 Thread Michael Bentley
On Mar 31, 2007, at 11:54 PM, Basilisk96 wrote: > This topic is difficult to describe in one subject sentence... > > Has anyone come across the application of the simple statement "if > (object1's attributes meet some conditions) then (set object2's > attributes to certain outcomes)", where "obje

Re: Generic logic/conditional class or library for classification of data

2007-04-01 Thread Steven D'Aprano
On Sat, 31 Mar 2007 21:54:46 -0700, Basilisk96 wrote: > As a very basic example, consider a set of uncategorized objects that > have text descriptions associated with them. The objects are some type > of tangible product, e.g., books. So the input object has a > Description attribute, and the outp