First Missing Positive

Description Link: https://oj.leetcode.com/problems/first-missing-positive/ Solution 1 class Solution { 2 public: 3 int firstMissingPositive(int A[], int n) { 4 for (int i =0; i < n; ++ i) 5 if (A[i] == -1) 6 A[i] = -3; 7 8 for (int...

Conjoint Analysis

Conjoint Analysis It focuses on the features of the product or service. Conjoint analysis is a statistical technique used in market research to determine who people value different features that make up an individual product or service. The objective of...

Longest Valid Parentheses

Description Given a string containing just the characters ‘(‘ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(()”, the longest valid parentheses substring is “()”, which has length = 2. Another example is “)()())”, where...

Notes on Chapter 2 of ESL

2.1 Instroduction Supervised Learning: predict output values from input values. Some equivalent terminologies: Input: predictors, independent variables, features Ouput: responses, dependent variables 2.2 Variable Types and Terminology Three variable types Quantitative (continuos) ratio defined ratio not defined Qualitative (discrete, categorical,...

Bias-Variance

Bias-variance tradeoff is a very basic and important topic in machine learning. It basically tells us what makes up the generalization error of a hypothesis or even a leaner and the involved tradeoff between the bias and variance. By knowing...