Note笔记

Home/Note笔记

2023-2024 Reading书单

By |2023-10-01T23:39:01-04:00October 1st, 2023|Categories: Note笔记|Tags: , , |

<The Fine Art of Small Talk> by Debra Fine A interesting book to help introvert and shy person to enjoy the fun of small talk in business. It's more of a skill that can be trained than a born gift. <今日简史 21 Lessons for the 21st Century> by Yuval Noah Harari Although this book [...]

[Repost] Understanding Machine Learning in Research vs. Business

By |2019-09-17T17:57:58-04:00September 17th, 2019|Categories: Note笔记|Tags: , |

I just came across a very insightful article about the status quo of common understanding of the hype in Machine Learning. The author uses analogy of chef and kitchen appliance to compare with Machine Learning in business and in research. Nowadays people and companies are passionate about the development of 'kitchen appliance' while ignoring what they [...]

Data Science Interview Log数据科学家面经

By |2021-01-15T13:22:00-05:00September 9th, 2019|Categories: Note笔记|Tags: , , , , |

Introduction There are mainly 2 types of DS interview questions you'll meet with: 1. Technical and 2. Business. For technical questions, you'll be asked about Brainteasing (quickly solve a math problem), Machine Learning (how do you deal with overfitting?), or Database related case questions. For business questions, be prepared for Estimation, Data Strategic, or [...]

Product Case Notebook

By |2019-11-23T18:44:50-05:00September 4th, 2019|Categories: Note笔记|Tags: , , |

The CIRCLES for Product Design Comprehend the situation Identify the customer Report the customer's need Cut, through prioritization List solutions Evaluate Trade-offs Summarize your recommendation Mocked Case Examples and Feedback "How to improve Facebook Marketplace?" Structured Answer: C - FB Marketplace is a platform where people discover, buy and sell items with their community [...]

Note for R Parallel Computing

By |2018-08-31T12:58:39-04:00August 31st, 2018|Categories: Note笔记|Tags: , , , |

#并行计算-parallel包 #parallel包的思路和lapply函数很相似,都是将输入数据分割、计算、整合结果。只不过并行计算是用到了不同的cpu来运算。下面的例子是解决欧拉问题的第14个问题。 # 并行计算euler14问题 # 自定义函数以返回原始数值和步数 library(parallel) func <- function(x) { n = 1 raw <- x while (x > 1) { x <- ifelse(x%%2==0,x/2,3*x+1) n = n + 1 } return(c(raw,n)) } library(parallel) # 用system.time来返回计算所需时间 system.time({ x <- 1:1e6 cl <- makeCluster(4) # 初始化四核心集群 results <- parLapply(cl,x,func) # lapply的并行版本 res.df <- do.call('rbind',results) # 整合结果 stopCluster(cl) [...]

R Multiplots in ggplot2

By |2018-08-31T12:55:49-04:00August 31st, 2018|Categories: Note笔记, Technique技术|Tags: , , , |

#Multiplot in ggplot2 install.packages("gridExtra") library("gridExtra") install.packages("cowplot") library("cowplot") df <- ToothGrowth # Convert the variable dose from a numeric to a factor variable df$dose <- as.factor(df$dose) head(df) #----Cowplot---- # The cowplot package is an extension to ggplot2 #and it can be used to provide a publication-ready plots. library(cowplot) # Default plot bp <- ggplot(df, aes(x=dose, y=len, color=dose)) [...]

R Use profvis Package for Better System Monitoring

By |2018-08-31T12:33:03-04:00August 31st, 2018|Categories: Note笔记|Tags: , , , |

Here is an interesting package called 'profvis' that I recently get to know about. It is quite useful when you are trying to locate the place where takes the longest time when running the code. Below is an official example. #R system monitoring install.packages('profvis') library(profvis) # To run code with profiling, wrap the expression in profvis(). [...]

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.
Go to Top