SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 04 Jan 2018 My Price 7.00

# Function that finds users with a certain interest

Python Programming:

 

users = [

      {"id": 0, "name": "Hero"},

      {"id": 1, "name": "Dunn"},

      {"id": 2, "name": "Sue"},

      {"id": 3, "name": "Chi"},

      {"id": 4, "name": "Thor"},

      {"id": 5, "name": "CLive"},

      {"id": 6, "name": "Hicks"},

      {"id": 7, "name": "Devin"},

      {"id": 8, "name": "Kate"},

      {"id": 9, "name": "Klein"}

    ]

 

friendships = [(0,1), (0,2), (1,2), (1,3), (2,3), (3,4),

        (4,5), (5,6), (5,7), (6,8), (7,8), (8,9)]

 

interests = [

  (0, "Hadoop"), (0, "Big Data"), (0, "HBase"), (0, "Java"),

  (0, "Spark"), (0, "Storm"), (0, "Cassandra"),

  (1, "NoSQL"), (1, "MongoDB"), (1, "Cassandra"), (1, "HBase"),

  (1, "Postgres"), (2, "Python"), (2, "scikit-learn"), (2, "scipy"),

  (2, "numpy"), (2, "statsmodels"), (2, "pandas"), (2, "scipy"), (3, "R"), (3, "Python"),

  (3, "statistics"), (3, "regression"), (3, "probability"),

  (4, "machine learning"), (4, "regression"), (4, "decision trees"),

  (4, "libsvm"), (5, "Python"), (5, "R"), (5, "Java"), (5, "C++"),

  (5, "Haskell"), (5, "programming languages"), (6, "statistics"),

  (6, "probability"), (6, "mathematics"), (6, "theory"),

  (7, "machine learning"), (7, "scikit-learn"), (7, "Mahout"),

  (7, "neural networks"), (8, "neural networks"), (8, "deep learning"),

  (8, "Big Data"), (8, "artificial intelligence"), (9, "Hadoop"),

  (9, "Java"), (9, "MapReduce"), (9, "Big Data")

]

 

#----------------------------------------------------------

# Function that finds users with a certain interest

#----------------------------------------------------------

def data_scientists_who_like(target_interest):

  return [user_id

      for user_id, user_interest in interests

      if user_interest == target_interest]

 

#----------------------------------------------------------

#-- PROVIDE ANSWERS to the following questions (01) in python code:

#-- include code that prints the user id of those who are interested in R

#-- include code that prints the user id of those who are interested in Python

#-- hint: each of the above questions could be answered using one line of code

#--   the "interests" list contains the user id and the interest of that user

#--   combine the function (data_scientists_who_like) with a print statement to answer each of the questions

#----------------------------------------------------------

 

#----------------------------------------------------------

#-- PROVIDE ANSWERS to the following questions (02) in python code:

#-- include code that prints the name of those users who are interested in R

#-- include code that prints the name of those users who are interested in Python

#-- hint: if you answer question 01, this should be fairly straight forward

#--   the code will need to iterate through the list the function (data_scientists_who_like) returns, and then print the name from the users list

#----------------------------------------------------------

 

Answers

(5)
Status NEW Posted 04 Jan 2018 08:01 AM My Price 7.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)