Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Groups of Objects with Common Attributes

by martink (Initiate)
on May 15, 2018 at 22:45 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 00:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found