분류 전체보기
-
Primitives vs. ObjectsDynamicPL/Javascript 2019. 10. 24. 00:18
1. Overview Let's distinguish differences between primitives and objects 2. Description 2.1 Difference 2.1.1 Primitives Variables containing primitives actually hold that data inside of the variable itself. 2.1.2 Objectives Variables associated objects do not actually contain the object but instead, they contain a reference to the place in memory where the object is stored. That means these vari..
-
Classes and subclassesDynamicPL/Javascript 2019. 10. 23. 12:42
1. Overview Class is added in ES6 and doesn't add anything new to the language, but just synthetic sugar over the way we do prototypal inheritance in Javascript. Classes simply make it easier to implement inheritance and to create objects based on blueprints which are called function constructors in ES5. 2. Previous way to inherit methods var Person5 = function(name, yearOfBirth, job) { this.nam..
-
Promises, Promisification, Async, Await, and AjaxDynamicPL/Javascript 2019. 10. 23. 10:42
1. Overview The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. But syntax to consume promise can still be quite confusing and difficult to manage. And so in ES8 or ES2017, something called Async/Await was introduced to JavaScript in order to make it a lot easier for developers to consume promises. 2. Motivation 2.1 Callback he..
-
Event Loop, Execution Stack, Web APIs, and Message QueueDynamicPL/Javascript 2019. 10. 23. 01:49
1. Overview Clarify the difference between synchronous and asynchronous in JavaScript. And see How these things to work deeply with Event Loop, Execution Stack, WEB APIs, and Message Queue. 2. Description 2.1 Synchronous One statement is processed after the other, line by line in a single thread in the JavaScript engine 2.2 Asynchronous Allow asynchronous functions to run in the background We pa..
-
List, Dictionary, Set Comprehensions, and Difference between List Comprehensions and Generator expressionsDynamicPL/Python 2019. 10. 22. 16:56
1. Overview After reading this article you’ll learn: What are the list comprehensions in Python What are set comprehensions and dictionary comprehensions 2. Definition List comprehensions provide us with a simple way to create a list based on some iterable. During the creation, elements from the iterable can be conditionally included in the new list and transformed as needed. An iterable is some..
-
iterator, iterable, iteration, iterator protocol, generator functions, generator expressions, and lazy evaluationDynamicPL/Python 2019. 10. 22. 08:44
1. Overview In Python, iterable and iterator have specific meanings. How the iteration in Python works under the hood What are iterables and iterators and how to create them What is the iterator protocol What is a lazy evaluation What are the generator functions and generator expressions 2. Description 2.1 Loop 2.1.1 For Loop Python has something called for loop, but it works like a foreach loop..
-
Logistic RegressionMLAI/Regression 2019. 10. 20. 19:07
1. Overview We can predict categorical outcomes through a logistic regression yes or no will buy or won't buy 0 or 1. 2. Introduction Not only is this linear regression an awful fit but it also predicts values which are consist of only 0 and 1 which fall outside the natural domain of admission. This regression doesn't even know that our values are bounded between 0 and 1. The first assumption of..
-
Simple Linear RegressionMLAI/Regression 2019. 10. 20. 18:20
1. Overview Linear regression attempts to model the relationship between two variables by fitting a linear equation to observed data. One variable is considered to be an explanatory variable, and the other is considered to be a dependent variable. For example, a modeler might want to relate the weights of individuals to their heights using a linear regression model. 2. Description 2.1 Process Ge..