Going Pro in Data Science by MOUSAIF YASSINE
Author:MOUSAIF, YASSINE
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2022-01-09T00:00:00+00:00
Build Like a Pro
You donât have to build the elements of a data product in a set order (i.e., build the repository first, then the algorithms, then the controlâ ler; see Figure 5-4). The professional approach is to build in the order of highest technical risk. Start with the riskiest element first, and go from there. An element can be technically risky for a lot of reasons. The riskiest part may be the one that has the highest workâ load or the part you understand the least.
Figure 5-4. Implementing the pieces of the blackboard pattern You can build out components in any order by focusing on a single element and stubbing3 out the rest. If you decide, for example, to start by building an algorithm, dummy up the input data and define a temporary spot to write the algorithmâs output.
Then, implement a data product in the order of technical risk: riskiâ est elements first. Focus on a particular element, stub out the rest, and replace the stubs later. In Chapter 4, I described an analysis we performed on employee satisfaction data. After we had a model that told us which factors influenced happiness, we wanted to do further analysis to find out why those factors were important. The plan was to take employees that the model identified as happy, and build a topic model from their unstructured text comments.
3 A stub is a piece of code that serves as a simulation for some piece of programming functionality. A stub is a simple, temporary substitute for yet-to-be-developed code. I was certain that I could write the algorithm needed to produce the topic model. I was somewhat confident that I could access the data, but I wasnât sure at all how to coordinate all the pieces so that they fit into a coherent analysis. I decided to start by writing the control. I wrote the following R code, then ran it to make sure that it exeâ cuted as expected:
#Read in the employee ratings
ratings < read.csv(file = "dummy_company_reviews.csv") #This function takes raw employee ratings, processes them, #builds a topic model then displays the topics
topic_model < function(ratings){
topic_model_stub < c("topic1","topic2","topic3") } #Perform a topic analysis on the reviewers with factors that #match happy employees. The resulting topics will give us more #information about why the employees are happy
ratings.happy < subset(ratings,
Compensation.Benefits > 2 & Management > 3 &
Job.Security.Advancement > 2 & Helpful.Yes > 0
)
ratings.happy.desc < ratings.happy[,"Review.Description.Trans lated"]
topic_model(ratings.happy.desc)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Access | Data Mining |
Data Modeling & Design | Data Processing |
Data Warehousing | MySQL |
Oracle | Other Databases |
Relational Databases | SQL |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6756)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6732)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6616)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6402)
Driving Data Quality with Data Contracts by Andrew Jones(6343)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6108)
Learning SQL by Alan Beaulieu(5999)
Weapons of Math Destruction by Cathy O'Neil(5784)
Big Data Analysis with Python by Ivan Marin(5372)
Data Engineering with dbt by Roberto Zagni(4372)
Solidity Programming Essentials by Ritesh Modi(4021)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3882)
Pandas Cookbook by Theodore Petrou(3587)
Blockchain Basics by Daniel Drescher(3299)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2909)
Feature Store for Machine Learning by Jayanth Kumar M J(2816)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2799)
Mastering Python for Finance by Unknown(2745)
