SHARE
TWEET

Untitled

a guest Feb 27th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### solution
  2. print("iris: ", len(set(iris.target)))
  3. print("digits: ", len(set(digits.target)))
  4. print("diabetes: ", len(set(diabetes.target)))
  5. print()
  6.  
  7. import collections
  8. toCount = [iris.target, digits.target, diabetes.target]
  9. names = ["iris", "digits", "diabetes"]
  10.  
  11. for i in range(len(toCount)):
  12.   counter=collections.Counter(toCount[i])
  13.   print(names[i], ": ", counter)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top