Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Groups of Objects with Common Attributes

by martink (Initiate)
on May 15, 2018 at 22:45 UTC ( #1214593=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ./pairs | grep cut | cut -d " " -f 4- | sort -u | sort -nr -k3
    cluster,items,attr 0 3 2 apple,orange,pumpkin plant,round
    ...
    cluster,items,attr 1 1 3 ball red,round,toy
    cluster,items,attr 0 1 4 orange fruit,orange,plant,round
    cluster,items,attr 0 1 4 apple fruit,plant,red,round
    
  2. or download this
    use List::Util (sum);
    use List::MoreUtils qw(uniq);
    ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2021-03-03 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (67 votes). Check out past polls.

    Notices?