aa.pptx
0.04MB

box plot은 사분위수(상위 25%, 50%, 75%를 각각 Q1, Q2, Q3 표현)를 그림으로 나타낸 것이다. Q1 ~ Q3 사이의 상위 25~75% 구간이 가운데 box로 나타내지고, Q2(상위 50%)는 박스 중간에 직선으로 표시된다. Q1 - (Q3 - Q1) * 1.5 이하와 Q3 + (Q3 - Q1) * 1.5 이상의 구간에 존재하는 샘플들은 이상치(outlier)로 간주되며 점으로 표시된다. 이 범위 내의 최소값(minimum)과 최대값(maximum)을 양 끝의 수직선으로 나타낸다. 

 

아래 코드는 https://stackoverflow.com/questions/50554235/how-to-base-seaborn-boxplot-whiskers-on-percentiles 의 코드를 수정한 것인데, seaborn box plot을 이해하기에 좋은 예제인 것 같다. 

import seaborn as sns
import matplotlib.pyplot as plt

tips = sns.load_dataset("tips")
a1 = tips["total_bill"]
ax = sns.boxplot(x=tips["total_bill"], whis=[5, 95])
plt.grid(True)
plt.figure()
ax = sns.boxplot(x=tips["total_bill"])
plt.grid(True)

print(tips["total_bill"].describe())

실행결과

[229 rows x 16 columns]
count    244.000000
mean      19.785943
std        8.902412
min        3.070000
25%       13.347500
50%       17.795000
75%       24.127500
max       50.810000
Name: total_bill, dtype: float64

아래 그림은 5%와 95%를 minimum, maximum으로 구분한 플롯.

아래 그림은 원래 함수의 디폴트에 따라 minimum, maximum으로 구분한 플롯.

https://jimmy-ai.tistory.com/51에서는 

"참고로, box plot은 사분위수(상위 25, 50, 75% 숫자 : Q1, Q2, Q3)를 기준으로
Q1 ~ Q3 사이의 상위 25~75% 구간이 가운데 box로 색칠되고,
Q1 - (Q3 - Q1) * 1.5 이하와 Q3 + (Q3 - Q1) * 1.5 이상의 구간을 끝 선으로 나타내고
이 밖의 범위에 해당하는 숫자는 이상치(점으로 표시)로 취급하는 그림입니다.
박스의 끝점이 Q1, Q3에 해당하고, 박스 가운데 선이 Q2에 해당하는 것을 참고하세요."

라고 설명하고 있다. 그런데, Q1 - (Q3 - Q1) * 1.5 이하와 Q3 + (Q3 - Q1) * 1.5 이상의 구간을 끝 선으로 나타낸다면, 박스로부터 양 끝으로부터 양 끝 선(수직선)까지 길이가 같아야하는데 다르다. 그래서 검색해보니, 

https://datagy.io/seaborn-boxplot/

https://datagy.io/seaborn-boxplot/ 에서 제대로 설명하고 있다. 

https://flowingdata.com/2008/02/15/how-to-read-and-use-a-box-and-whisker-plot/

위 그림은 https://flowingdata.com/2008/02/15/how-to-read-and-use-a-box-and-whisker-plot/ 에서 설명하고 있는 그림인데, minumum을 25%의 1.5배보다 작은 것이라고 설명하고 있는데 잘못 설명하여 헷갈리게 만든다. 

 

 

 

 

 

 

 

 

 

 
 
 
 
 
 
 
 
 
Posted by uniqueone
,
* 아래는 라이브러리 이용해서 피처 늘리는 예시 코드 및 설명
 
 
PCA를 이용한 Feature Extraction 설명 및 코드

PCA를 이용한 Feature Extraction 설명 및 코드
 

 

https://medium.com/analytics-vidhya/feature-engineering-using-featuretools-with-code-10f8c83e5f68 (https://github.com/ranasingh-gkp/Feature_engineering_Featuretools)

 

https://www.analyticsvidhya.com/blog/2018/08/guide-automated-feature-engineering-featuretools-python/

 

https://data-newbie.tistory.com/815 은 원본코드 https://www.kaggle.com/frednavruzov/auto-feature-generation-featuretools-example 를 버전 업데이트에 맞춰 수정한 최신 코드이다.

 

Featuretools의 공식 홈페이지의 예제코드

https://featuretools.alteryx.com/en/stable/ , https://featuretools.alteryx.com/en/stable/getting_started/using_entitysets.html

 

https://analyticsindiamag.com/introduction-to-featuretools-a-python-framework-for-automated-feature-engineering/

https://youtube.com/playlist?list=PLSlDi2AkDv832sRHreZKoyyzJnGxLkcfF

Feature Tools에 대한 설문 문서 페이지들: https://primitives.featurelabs.com/ , https://docs.featuretools.com/en/stable/api_reference.html#feature-primitives

* 아래는 PCA를 이용한 Feature Extraction 설명 및 코드

https://towardsdatascience.com/feature-extraction-using-principal-component-analysis-a-simplified-visual-demo-e5592ced100a

https://medium.com/@mayureshrpalav/principal-component-analysis-feature-extraction-technique-3f480d7b9697

https://stats.stackexchange.com/questions/2691/making-sense-of-principal-component-analysis-eigenvectors-eigenvalues/140579#140579

https://vitalflux.com/feature-extraction-pca-python-example/

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Posted by uniqueone
,
The cause of poor performance in machine is either overfitting or underfitting the data

To explain it simply :
Machine ignoring - underfitting
Machine learning - Goodfitting
Machine memorising - overfitting

For more updates follow @heu.ai

#machinelearning
#underfitting
#overfitting #ai #artificialintelligenceai #computervision #deeplearning #heuai #classification #regression #algorithms #python #robotics #technology #innovation #opencv #accuracy
https://m.facebook.com/story.php?story_fbid=152372286143806&id=107932853921083&sfnsn=mo
Posted by uniqueone
,
Posted by uniqueone
,
Particle Swarm Optimization – A Tutorial
Dear all here is a tutorial paper on one of the optimization algorithms, is called particle swarm optimization (PSO). It is one of the most well-known optimization algorithms. In this paper:
• Introduction to PSO.
• Detailed explanation for the PSO algorithm with a good visualization.
• Two neumerical examples,
o The first example explains in a step-by-step approach how the PSO works.
o The second example explains how the PSO suffers from the local minima problem.
• Another experiment to explain fastly how the PSO can be used for optimizing some classifiers such as Support vector Machine (SVM)
• The paper includes Matlab code

Your comments are highly appreciated.

Here is the link of the pdf
https://www.academia.edu/36712310/Particle_Swarm_Optimization_-A_Tutorial
or here on researchgate
https://www.researchgate.net/publication/325575025_Particle_Swarm_Optimization-A_Tutorial?_sg=ClpsRLk5klozmA85qNOSIg2eNn_d1WDbh1yDUouQVJ7DTHmxP4DQuCK42YkJHtmQyc6U7zLXAwGAYbzWm6E03QtSGm18_jZG71IS6P9z.yGITB4_GJRnwIchxQM63qJvdswe4sGcmi9e4odn0gB2lL6nqWNdPYzTJsGI0Afo0xn-OWZMLXFIhmMTeLtuDaQ

The code is here
https://de.mathworks.com/matlabcentral/fileexchange/62998-particle-swarm-optimization--pso--tutorial
Posted by uniqueone
,
베이즈통계 기초

- 베이즈 추정에서는 정보를 순차적으로 사용할 수 있다.
- 베이즈 추정은 얻을수록 더 정확해진다.

를 정리해보았습니다. 😀

슬라이드 :
https://github.com/wonseokjung/bayesian_statistics/blob/master/베이즈통계.pdf

블로그:
https://wonseokjung.github.io//bayesian/update/Bayes-1/
Posted by uniqueone
,
https://m.facebook.com/groups/869457839786067?view=permalink&id=1478681038863741

기계학습을 공부한 산업공학과의 입장에서 공부할만한 한글로된 자료(강의자료 + 영상)을 모아봤습니다. 아래의 자료는 코드 실습이 필요한 내용일 경우는 언어는 전부 Python입니다. (통계학개론강의만 제외) 딥러닝에 관한 한글로된 영상 및 자료는 김성훈 교수님의 "모두의 딥러닝"이 있습니다. (정말 감사드립니다.) 영어로된 좋은 강의도 많지만 (cs231n, cs224d , RL course by David Silver, Neural Network course by Hugo Larochelle), 영어로 본격적으로 딥러닝을 공부하기전에 빠르게 익숙한 언어로 기계학습을 공부해보실 분들은 참고하셔도 좋을 것 같습니다.

cf. 웹프로그래밍은 사심으로 넣어봤습니다.

[k-mooc]
미적분학1 (성균관대 채영도 교수님)
- http://www.kmooc.kr/courses/course-v1:SKKUk+SKKU_EXGB506.01K+2017_SKKU22/about

미적분학2 (성균관대 채영도 교수님)
- http://www.kmooc.kr/courses/course-v1:SKKUk+SKKU_2017_05-01+2017_SKKU01/about

선형대수학 (성균관대 이상구 교수님)
- http://www.kmooc.kr/courses/course-v1:SKKUk+SKKU_2017_01+2017_SKKU01/about

R을 활용한 통계학개론 (부산대 김충락 교수님)
- http://www.kmooc.kr/courses/course-v1:PNUk+RS_C01+2017_KM_009/about

인공지능과 기계학습 (카이스트 오혜연 교수님)
- http://www.kmooc.kr/courses/course-v1:KAISTk+KCS470+2017_K0202/about

[kooc]
파이썬 자료구조 (카이스트 문일철 교수님)
- http://kooc.kaist.ac.kr/datastructure-2017f

영상이해를 위한 최적화 (카이스트 김창익 교수님)
- http://kooc.kaist.ac.kr/optimization2017/lecture/10543

인공지능 및 기계학습 개론 1 (카이스트 문일철 교수님)
- http://kooc.kaist.ac.kr/machinelearning1_17/lecture/10574
- http://seslab.kaist.ac.kr/xe2/page_GBex27

인공지능 및 기계학습 개론 2 (카이스트 문일철 교수님)
- http://kooc.kaist.ac.kr/machinelearning2__17/lecture/10573
- http://seslab.kaist.ac.kr/xe2/page_Dogc43
 
인공지능 및 기계학습 심화 (카이스트 문일철 교수님)
- http://kooc.kaist.ac.kr/machinelearning3
- http://seslab.kaist.ac.kr/xe2/page_lMmY25

[TeamLab]
데이터과학을 위한 파이썬 입문 (가천대 최성철 교수님)
- https://github.com/TeamLab/Gachon_CS50_Python_KMOOC

밑바닥부터 기계학습 (가천대 최성철 교수님)
- https://github.com/TeamLab/machine_learning_from_scratch_with_python

경영과학(가천대 최성철 교수님)
- https://github.com/TeamLab/Gachon_CS50_OR_KMOOC

웹프로그래밍 (가천대 최성철 교수님)
- https://github.com/TeamLab/cs50_web_programming

Posted by uniqueone
,

Machine Learning  |  Google Developers
https://developers.google.com/machine-learning/glossary/



Products   Machine Learning   Glossary
목차
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
U
V
W

A


accuracy

The fraction of predictions that a classification model got right. In multi-class classification, accuracy is defined as follows:

Accuracy=CorrectPredictionsTotalNumberOfExamples
In binary classification, accuracy has the following definition:

Accuracy=TruePositives+TrueNegativesTotalNumberOfExamples
See true positive and true negative.


activation function

A function (for example, ReLU or sigmoid) that takes in the weighted sum of all of the inputs from the previous layer and then generates and passes an output value (typically nonlinear) to the next layer.


AdaGrad

A sophisticated gradient descent algorithm that rescales the gradients of each parameter, effectively giving each parameter an independent learning rate. For a full explanation, see this paper.


AUC (Area under the ROC Curve)

An evaluation metric that considers all possible classification thresholds.

The Area Under the ROC curve is the probability that a classifier will be more confident that a randomly chosen positive example is actually positive than that a randomly chosen negative example is positive.

B


backpropagation

The primary algorithm for performing gradient descent on neural networks. First, the output values of each node are calculated (and cached) in a forward pass. Then, the partial derivative of the error with respect to each parameter is calculated in a backward pass through the graph.


baseline

A simple model or heuristic used as reference point for comparing how well a model is performing. A baseline helps model developers quantify the minimal, expected performance on a particular problem.


batch

The set of examples used in one iteration (that is, one gradient update) of model training.


batch size

The number of examples in a batch. For example, the batch size of SGD is 1, while the batch size of a mini-batch is usually between 10 and 1000. Batch size is usually fixed during training and inference; however, TensorFlow does permit dynamic batch sizes.


bias

An intercept or offset from an origin. Bias (also known as the bias term) is referred to as b or w0 in machine learning models. For example, bias is the b in the following formula:

y′=b+w1x1+w2x2+…wnxn
Not to be confused with prediction bias.


binary classification

A type of classification task that outputs one of two mutually exclusive classes. For example, a machine learning model that evaluates email messages and outputs either "spam" or "not spam" is a binary classifier.


binning

See bucketing.


bucketing

Converting a (usually continuous) feature into multiple binary features called buckets or bins, typically based on value range. For example, instead of representing temperature as a single continuous floating-point feature, you could chop ranges of temperatures into discrete bins. Given temperature data sensitive to a tenth of a degree, all temperatures between 0.0 and 15.0 degrees could be put into one bin, 15.1 to 30.0 degrees could be a second bin, and 30.1 to 50.0 degrees could be a third bin.

C


calibration layer

A post-prediction adjustment, typically to account for prediction bias. The adjusted predictions and probabilities should match the distribution of an observed set of labels.


candidate sampling

A training-time optimization in which a probability is calculated for all the positive labels, using, for example, softmax, but only for a random sample of negative labels. For example, if we have an example labeled beagle and dog candidate sampling computes the predicted probabilities and corresponding loss terms for the beagle and dog class outputs in addition to a random subset of the remaining classes (cat, lollipop, fence). The idea is that the negative classes can learn from less frequent negative reinforcement as long as positive classes always get proper positive reinforcement, and this is indeed observed empirically. The motivation for candidate sampling is a computational efficiency win from not computing predictions for all negatives.


checkpoint

Data that captures the state of the variables of a model at a particular time. Checkpoints enable exporting model weights, as well as performing training across multiple sessions. Checkpoints also enable training to continue past errors (for example, job preemption). Note that the graph itself is not included in a checkpoint.


class

One of a set of enumerated target values for a label. For example, in a binary classification model that detects spam, the two classes are spam and not spam. In a multi-class classification model that identifies dog breeds, the classes would be poodle, beagle, pug, and so on.


class-imbalanced data set

A binary classification problem in which the labels for the two classes have significantly different frequencies. For example, a disease data set in which 0.0001 of examples have positive labels and 0.9999 have negative labels is a class-imbalanced problem, but a football game predictor in which 0.51 of examples label one team winning and 0.49 label the other team winning is not a class-imbalanced problem.


classification model

A type of machine learning model for distinguishing among two or more discrete classes. For example, a natural language processing classification model could determine whether an input sentence was in French, Spanish, or Italian. Compare with regression model.


classification threshold

A scalar-value criterion that is applied to a model's predicted score in order to separate the positive class from the negative class. Used when mapping logistic regression results to binary classification. For example, consider a logistic regression model that determines the probability of a given email message being spam. If the classification threshold is 0.9, then logistic regression values above 0.9 are classified as spam and those below 0.9 are classified as not spam.


confusion matrix

An NxN table that summarizes how successful a classification model's predictions were; that is, the correlation between the label and the model's classification. One axis of a confusion matrix is the label that the model predicted, and the other axis is the actual label. N represents the number of classes. In a binary classification problem, N=2. For example, here is a sample confusion matrix for a binary classification problem:

Tumor (predicted) Non-Tumor (predicted)
Tumor (actual) 18 1
Non-Tumor (actual) 6 452
The preceding confusion matrix shows that of the 19 samples that actually had tumors, the model correctly classified 18 as having tumors (18 true positives), and incorrectly classified 1 as not having a tumor (1 false negative). Similarly, of 458 samples that actually did not have tumors, 452 were correctly classified (452 true negatives) and 6 were incorrectly classified (6 false positives).

The confusion matrix of a multi-class confusion matrix can help you determine mistake patterns. For example, a confusion matrix could reveal that a model trained to recognize handwritten digits tends to mistakenly predict 9 instead of 4, or 1 instead of 7. The confusion matrix contains sufficient information to calculate a variety of performance metrics, including precision and recall.


continuous feature

A floating-point feature with an infinite range of possible values. Contrast with discrete feature.


convergence

Informally, often refers to a state reached during training in which training loss and validation loss change very little or not at all with each iteration after a certain number of iterations. In other words, a model reaches convergence when additional training on the current data will not improve the model. In deep learning, loss values sometimes stay constant or nearly so for many iterations before finally descending, temporarily producing a false sense of convergence.

See also early stopping.

See also Convex Optimization by Boyd and Vandenberghe.


convex function

A function typically shaped approximately like the letter U or a bowl. However, in degenerate cases, a convex function is shaped like a line. For example, the following are all convex functions:

L2 loss
Log Loss
L1 regularization
L2 regularization
Convex functions are popular loss functions. That's because when a minimum value exists (as is often the case), many variations of gradient descent are guaranteed to find a point close to the minimum point of the function. Similarly, many variations of stochastic gradient descent have a high probability (though, not a guarantee) of finding a point close to the minimum.

The sum of two convex functions (for example, L2 loss + L1 regularization) is a convex function.

Deep models are usually not convex functions. Remarkably, algorithms designed for convex optimization tend to work reasonably well on deep networks anyway, even though they rarely find a minimum.


cost

Synonym for loss.


cross-entropy

A generalization of Log Loss to multi-class classification problems. Cross-entropy quantifies the difference between two probability distributions. See also perplexity.

D


data set

A collection of examples.


decision boundary

The separator between classes learned by a model in a binary class or multi-class classification problems. For example, in the following image representing a binary classification problem, the decision boundary is the frontier between the orange class and the blue class:

A
well-defined boundary between one class and another.


deep model

A type of neural network containing multiple hidden layers. Deep models rely on trainable nonlinearities.

Contrast with wide model.


dense feature

A feature in which most values are non-zero, typically a Tensor of floating-point values. Contrast with sparse feature.


derived feature

Synonym for synthetic feature.


discrete feature

A feature with a finite set of possible values. For example, a feature whose values may only be animal, vegetable, or mineral is a discrete (or categorical) feature. Contrast with continuous feature.


dropout regularization

A form of regularization useful in training neural networks. Dropout regularization works by removing a random selection of a fixed number of the units in a network layer for a single gradient step. The more units dropped out, the stronger the regularization. This is analogous to training the network to emulate an exponentially large ensemble of smaller networks. For full details, see Dropout: A Simple Way to Prevent Neural Networks from Overfitting.


dynamic model

A model that is trained online in a continuously updating fashion. That is, data is continuously entering the model.

E


early stopping

A method for regularization that involves ending model training before training loss finishes decreasing. In early stopping, you end model training when the loss on a validation data set starts to increase, that is, when generalization performance worsens.


embeddings

A categorical feature represented as a continuous-valued feature. Typically, an embedding is a translation of a high-dimensional vector into a low-dimensional space. For example, you can represent the words in an English sentence in either of the following two ways:

As a million-element (high-dimensional) sparse vector in which all elements are integers. Each cell in the vector represents a separate English word; the value in a cell represents the number of times that word appears in a sentence. Since a single English sentence is unlikely to contain more than 50 words, nearly every cell in the vector will contain a 0. The few cells that aren't 0 will contain a low integer (usually 1) representing the number of times that word appeared in the sentence.
As a several-hundred-element (low-dimensional) dense vector in which each element holds a floating-point value between 0 and 1.
In TensorFlow, embeddings are trained by backpropagating loss just like any other parameter in a neural network.


empirical risk minimization (ERM)

Choosing the model function that minimizes loss on the training set. Contrast with structural risk minimization.


ensemble

A merger of the predictions of multiple models. You can create an ensemble via one or more of the following:

different initializations
different hyperparameters
different overall structure
Deep and wide models are a kind of ensemble.


Estimator

An instance of the tf.Estimator class, which encapsulates logic that builds a TensorFlow graph and runs a TensorFlow session. You may create your own Estimators (as described here) or instantiate pre-made Estimators created by others.


example

One row of a data set. An example contains one or more features and possibly a label. See also labeled example and unlabeled example.

F


false negative (FN)

An example in which the model mistakenly predicted the negative class. For example, the model inferred that a particular email message was not spam (the negative class), but that email message actually was spam.


false positive (FP)

An example in which the model mistakenly predicted the positive class. For example, the model inferred that a particular email message was spam (the positive class), but that email message was actually not spam.


false positive rate (FP rate)

The x-axis in an ROC curve. The FP rate is defined as follows:

FalsePositiveRate=FalsePositivesFalsePositives+TrueNegatives

feature

An input variable used in making predictions.


feature columns (FeatureColumns)

A set of related features, such as the set of all possible countries in which users might live. An example may have one or more features present in a feature column.

Feature columns in TensorFlow also encapsulate metadata such as:

the feature's data type
whether a feature is fixed length or should be converted to an embedding
A feature column can contain a single feature.

"Feature column" is Google-specific terminology. A feature column is referred to as a "namespace" in the VW system (at Yahoo/Microsoft), or a field.


feature cross

A synthetic feature formed by crossing (multiplying or taking a Cartesian product of) individual features. Feature crosses help represent nonlinear relationships.


feature engineering

The process of determining which features might be useful in training a model, and then converting raw data from log files and other sources into said features. In TensorFlow, feature engineering often means converting raw log file entries to tf.Example protocol buffers. See also tf.Transform.

Feature engineering is sometimes called feature extraction.


feature set

The group of feature your machine learning model trains on. For example, postal code, property size, and property condition might comprise a simple feature set for a model that predicts housing prices.


feature spec

Describes the information required to extract features data from the tf.Example protocol buffer. Because the tf.Example protocol buffer is just a container for data, you must specify the following:

the data to extract (that is, the keys for the features)
the data type (for example, float or int)
The length (fixed or variable)
The Estimator API provides facilities for producing a feature spec from a list of FeatureColumns.


full softmax

See softmax. Contrast with candidate sampling.

G


generalization

Refers to your model's ability to make correct predictions on new, previously unseen data as opposed to the data used to train the model.


generalized linear model

A generalization of least squares regression models, which are based on Gaussian noise, to other types of models based on other types of noise, such as Poisson noise or categorical noise. Examples of generalized linear models include:

logistic regression
multi-class regression
least squares regression
The parameters of a generalized linear model can be found through convex optimization.

Generalized linear models exhibit the following properties:

The average prediction of the optimal least squares regression model is equal to the average label on the training data.
The average probability predicted by the optimal logistic regression model is equal to the average label on the training data.
The power of a generalized linear model is limited by its features. Unlike a deep model, a generalized linear model cannot "learn new features."


gradient

The vector of partial derivatives with respect to all of the independent variables. In machine learning, the gradient is the the vector of partial derivatives of the model function. The gradient points in the direction of steepest ascent.


gradient clipping

Capping gradient values before applying them. Gradient clipping helps ensure numerical stability and prevents exploding gradients.


gradient descent

A technique to minimize loss by computing the gradients of loss with respect to the model's parameters, conditioned on training data. Informally, gradient descent iteratively adjusts parameters, gradually finding the best combination of weights and bias to minimize loss.


graph

In TensorFlow, a computation specification. Nodes in the graph represent operations. Edges are directed and represent passing the result of an operation (a Tensor) as an operand to another operation. Use TensorBoard to visualize a graph.

H


heuristic

A practical and nonoptimal solution to a problem, which is sufficient for making progress or for learning from.


hidden layer

A synthetic layer in a neural network between the input layer (that is, the features) and the output layer (the prediction). A neural network contains one or more hidden layers.


hinge loss

A family of loss functions for classification designed to find the decision boundary as distant as possible from each training example, thus maximizing the margin between examples and the boundary. KSVMs use hinge loss (or a related function, such as squared hinge loss). For binary classification, the hinge loss function is defined as follows:

loss=max(0,1−(y′∗y))
where y' is the raw output of the classifier model:

y′=b+w1x1+w2x2+…wnxn
and y is the true label, either -1 or +1.

Consequently, a plot of hinge loss vs. (y * y') looks as follows:

A
plot of hinge loss vs raw classifier score shows a distinct hinge at the
coordinate (1,0).


holdout data

Examples intentionally not used ("held out") during training. The validation data set and test data set are examples of holdout data. Holdout data helps evaluate your model's ability to generalize to data other than the data it was trained on. The loss on the holdout set provides a better estimate of the loss on an unseen data set than does the loss on the training set.


hyperparameter

The "knobs" that you tweak during successive runs of training a model. For example, learning rate is a hyperparameter.

Contrast with parameter.

I


independently and identically distributed (i.i.d)

Data drawn from a distribution that doesn't change, and where each value drawn doesn't depend on values that have been drawn previously. An i.i.d. is the ideal gas of machine learning—a useful mathematical construct but almost never exactly found in the real world. For example, the distribution of visitors to a web page may be i.i.d. over a brief window of time; that is, the distribution doesn't change during that brief window and one person's visit is generally independent of another's visit. However, if you expand that window of time, seasonal differences in the web page's visitors may appear.


inference

In machine learning, often refers to the process of making predictions by applying the trained model to unlabeled examples. In statistics, inference refers to the process of fitting the parameters of a distribution conditioned on some observed data. (See the Wikipedia article on statistical inference.)


input layer

The first layer (the one that receives the input data) in a neural network.


instance

Synonym for example.


inter-rater agreement

A measurement of how often human raters agree when doing a task. If raters disagree, the task instructions may need to be improved. Also sometimes called inter-annotator agreement or inter-rater reliability. See also Cohen's kappa, which is one of the most popular inter-rater agreement measurements.

K


Kernel Support Vector Machines (KSVMs)

A classification algorithm that seeks to maximize the margin between positive and negative classes by mapping input data vectors to a higher dimensional space. For example, consider a classification problem in which the input data set consists of a hundred features. In order to maximize the margin between positive and negative classes, KSVMs could internally map those features into a million-dimension space. KSVMs uses a loss function called hinge loss.

L


L1 loss

Loss function based on the absolute value of the difference between the values that a model is predicting and the actual values of the labels. L1 loss is less sensitive to outliers than L2 loss.


L1 regularization

A type of regularization that penalizes weights in proportion to the sum of the absolute values of the weights. In models relying on sparse features, L1 regularization helps drive the weights of irrelevant or barely relevant features to exactly 0, which removes those features from the model. Contrast with L2 regularization.


L2 loss

See squared loss.


L2 regularization

A type of regularization that penalizes weights in proportion to the sum of the squares of the weights. L2 regularization helps drive outlier weights (those with high positive or low negative values) closer to 0 but not quite to 0. (Contrast with L1 regularization.) L2 regularization always improves generalization in linear models.


label

In supervised learning, the "answer" or "result" portion of an example. Each example in a labeled data set consists of one or more features and a label. For instance, in a housing data set, the features might include the number of bedrooms, the number of bathrooms, and the age of the house, while the label might be the house's price. in a spam detection dataset, the features might include the subject line, the sender, and the email message itself, while the label would probably be either "spam" or "not spam."


labeled example

An example that contains features and a label. In supervised training, models learn from labeled examples.


lambda

Synonym for regularization rate.

(This is an overloaded term. Here we're focusing on the term's definition within regularization.)


layer

A set of neurons in a neural network that process a set of input features, or the output of those neurons.

Also, an abstraction in TensorFlow. Layers are Python functions that take Tensors and configuration options as input and produce other tensors as output. Once the necessary Tensors have been composed, the user can convert the result into an Estimator via a model function.


learning rate

A scalar used to train a model via gradient descent. During each iteration, the gradient descent algorithm multiplies the learning rate by the gradient. The resulting product is called the gradient step.

Learning rate is a key hyperparameter.


least squares regression

A linear regression model trained by minimizing L2 Loss.


linear regression

A type of regression model that outputs a continuous value from a linear combination of input features.


logistic regression

A model that generates a probability for each possible discrete label value in classification problems by applying a sigmoid function to a linear prediction. Although logistic regression is often used in binary classification problems, it can also be used in multi-class classification problems (where it becomes called multi-class logistic regression or multinomial regression).


Log Loss

The loss function used in binary logistic regression.


loss

A measure of how far a model's predictions are from its label. Or, to phrase it more pessimistically, a measure of how bad the model is. To determine this value, a model must define a loss function. For example, linear regression models typically use mean squared error for a loss function, while logistic regression models use Log Loss.

M


machine learning

A program or system that builds (trains) a predictive model from input data. The system uses the learned model to make useful predictions from new (never-before-seen) data drawn from the same distribution as the one used to train the model. Machine learning also refers to the field of study concerned with these programs or systems.


Mean Squared Error (MSE)

The average squared loss per example. MSE is calculated by dividing the squared loss by the number of examples. The values that TensorFlow Playground displays for "Training loss" and "Test loss" are MSE.


metric

A number that you care about. May or may not be directly optimized in a machine-learning system. A metric that your system tries to optimize is called an objective.


mini-batch

A small, randomly selected subset of the entire batch of examples run together in a single iteration of training or inference. The batch size of a mini-batch is usually between 10 and 1,000. It is much more efficient to calculate the loss on a mini-batch than on the full training data.


mini-batch stochastic gradient descent (SGD)

A gradient descent algorithm that uses mini-batches. In other words, mini-batch SGD estimates the gradient based on a small subset of the training data. Vanilla SGD uses a mini-batch of size 1.


ML

Abbreviation for machine learning.


model

The representation of what an ML system has learned from the training data. This is an overloaded term, which can have either of the following two related meanings:

The TensorFlow graph that expresses the structure of how a prediction will be computed.
The particular weights and biases of that TensorFlow graph, which are determined by training.

model training

The process of determining the best model.


Momentum

A sophisticated gradient descent algorithm in which a learning step depends not only on the derivative in the current step, but also on the derivatives in the step(s) that immediately preceded it. Momentum involves computing an exponentially weighted moving average of the gradients over time, analogous to momentum in physics. Momentum sometimes prevents learning from getting stuck in local minima.


multi-class

Classification problems that distinguish among more than two classes. For example, there are approximately 128 species of maple trees, so a model that categorized maple tree species would be multi-class. Conversely, a model that divided emails into only two categories (spam and not spam) would be a binary classification model.

N


NaN trap

When one number in your model becomes a NaN during training, which causes many or all other numbers in your model to eventually become a NaN.

NaN is an abbreviation for "Not a Number."


negative class

In binary classification, one class is termed positive and the other is termed negative. The positive class is the thing we're looking for and the negative class is the other possibility. For example, the negative class in a medical test might be "not tumor." The negative class in an email classifier might be "not spam." See also positive class.


neural network

A model that, taking inspiration from the brain, is composed of layers (at least one of which is hidden) consisting of simple connected units or neurons followed by nonlinearities.


neuron

A node in a neural network, typically taking in multiple input values and generating one output value. The neuron calculates the output value by applying an activation function (nonlinear transformation) to a weighted sum of input values.


normalization

The process of converting an actual range of values into a standard range of values, typically -1 to +1 or 0 to 1. For example, suppose the natural range of a certain feature is 800 to 6,000. Through subtraction and division, you can normalize those values into the range -1 to +1.

See also scaling.


numpy

An open-source math library that provides efficient array operations in Python. pandas is built on numpy.

O


objective

A metric that your algorithm is trying to optimize.


offline inference

Generating a group of predictions, storing those predictions, and then retrieving those predictions on demand. Contrast with online inference.


one-hot encoding

A sparse vector in which:

One element is set to 1.
All other elements are set to 0.
One-hot encoding is commonly used to represent strings or identifiers that have a finite set of possible values. For example, suppose a given botany data set chronicles 15,000 different species, each denoted with a unique string identifier. As part of feature engineering, you'll probably encode those string identifiers as one-hot vectors in which the vector has a size of 15,000.


one-vs.-all

Given a classification problem with N possible solutions, a one-vs.-all solution consists of N separate binary classifiers—one binary classifier for each possible outcome. For example, given a model that classifies examples as animal, vegetable, or mineral, a one-vs.-all solution would provide the following three separate binary classifiers:

animal vs. not animal
vegetable vs. not vegetable
mineral vs. not mineral

online inference

Generating predictions on demand. Contrast with offline inference.


Operation (op)

A node in the TensorFlow graph. In TensorFlow, any procedure that creates, manipulates, or destroys a Tensor is an operation. For example, a matrix multiply is an operation that takes two Tensors as input and generates one Tensor as output.


optimizer

A specific implementation of the gradient descent algorithm. TensorFlow's base class for optimizers is tf.train.Optimizer. Different optimizers (subclasses of tf.train.Optimizer) account for concepts such as:

momentum (Momentum)
update frequency (AdaGrad = ADAptive GRADient descent; Adam = ADAptive with Momentum; RMSProp)
sparsity/regularization (Ftrl)
more complex math (Proximal, and others)
You might even imagine an NN-driven optimizer.


outliers

Values distant from most other values. In machine learning, any of the following are outliers:

Weights with high absolute values.
Predicted values relatively far away from the actual values.
Input data whose values are more than roughly 3 standard deviations from the mean.
Outliers often cause problems in model training.


output layer

The "final" layer of a neural network. The layer containing the answer(s).


overfitting

Creating a model that matches the training data so closely that the model fails to make correct predictions on new data.

P


pandas

A column-oriented data analysis API. Many ML frameworks, including TensorFlow, support pandas data structures as input. See pandas documentation.


parameter

A variable of a model that the ML system trains on its own. For example, weights are parameters whose values the ML system gradually learns through successive training iterations. Contrast with hyperparameter.


Parameter Server (PS)

A job that keeps track of a model's parameters in a distributed setting.


parameter update

The operation of adjusting a model's parameters during training, typically within a single iteration of gradient descent.


partial derivative

A derivative in which all but one of the variables is considered a constant. For example, the partial derivative of f(x, y) with respect to x is the derivative of f considered as a function of x alone (that is, keeping y constant). The partial derivative of f with respect to x focuses only on how x is changing and ignores all other variables in the equation.


partitioning strategy

The algorithm by which variables are divided across parameter servers.


performance

Overloaded term with the following meanings:

The traditional meaning within software engineering. Namely: How fast (or efficiently) does this piece of software run?
The meaning within ML. Here, performance answers the following question: How correct is this model? That is, how good are the model's predictions?

perplexity

One measure of how well a model is accomplishing its task. For example, suppose your task is to read the first few letters of a word a user is typing on a smartphone keyboard, and to offer a list of possible completion words. Perplexity, P, for this task is approximately the number of guesses you need to offer in order for your list to contain the actual word the user is trying to type.

Perplexity is related to cross-entropy as follows:

P=2−crossentropy

pipeline

The infrastructure surrounding a machine learning algorithm. A pipeline includes gathering the data, putting the data into training data files, training one or more models, and exporting the models to production.


positive class

In binary classification, the two possible classes are labeled as positive and negative. The positive outcome is the thing we're testing for. (Admittedly, we're simultaneously testing for both outcomes, but play along.) For example, the positive class in a medical test might be "tumor." The positive class in an email classifier might be "spam."

Contrast with negative class.


precision

A metric for classification models. Precision identifies the frequency with which a model was correct when predicting the positive class. That is:

Precision=TruePositivesTruePositives+FalsePositives

prediction

A model's output when provided with an input example.


prediction bias

A value indicating how far apart the average of predictions is from the average of labels in the data set.


pre-made Estimator

An Estimator that someone has already built. TensorFlow provides several pre-made Estimators, including DNNClassifier, DNNRegressor, and LinearClassifier. You may build your own pre-made Estimators by following these instructions.


pre-trained model

Models or model components (such as embeddings) that have been already been trained. Sometimes, you'll feed pre-trained embeddings into a neural network. Other times, your model will train the embeddings itself rather than rely on the pre-trained embeddings.


prior belief

What you believe about the data before you begin training on it. For example, L2 regularization relies on a prior belief that weights should be small and normally distributed around zero.

Q


queue

A TensorFlow Operation that implements a queue data structure. Typically used in I/O.

R


rank

Overloaded term in ML that can mean either of the following:

The number of dimensions in a Tensor. For instance, a scalar has rank 0, a vector has rank 1, and a matrix has rank 2.
The ordinal position of a class in an ML problem that categorizes classes from highest to lowest. For example, a behavior ranking system could rank a dog's rewards from highest (a steak) to lowest (wilted kale).

rater

A human who provides labels in examples. Sometimes called an "annotator."


recall

A metric for classification models that answers the following question: Out of all the possible positive labels, how many did the model correctly identify? That is:

Recall=TruePositivesTruePositives+FalseNegatives

Rectified Linear Unit (ReLU)

An activation function with the following rules:

If input is negative or zero, output is 0.
If input is positive, output is equal to input.

regression model

A type of model that outputs continuous (typically, floating-point) values. Compare with classification models, which output discrete values, such as "day lily" or "tiger lily."


regularization

The penalty on a model's complexity. Regularization helps prevent overfitting. Different kinds of regularization include:

L1 regularization
L2 regularization
dropout regularization
early stopping (this is not a formal regularization method, but can effectively limit overfitting)

regularization rate

A scalar value, represented as lambda, specifying the relative importance of the regularization function. The following simplified loss equation shows the regularization rate's influence:

minimize(loss function + λ(regularization function))
Raising the regularization rate reduces overfitting but may make the model less accurate.


representation

The process of mapping data to useful features.


ROC (receiver operating characteristic) Curve

A curve of true positive rate vs. false positive rate at different classification thresholds. See also AUC.


root directory

The directory you specify for hosting subdirectories of the TensorFlow checkpoint and events files of multiple models.


Root Mean Squared Error (RMSE)

The square root of the Mean Squared Error.

S


Saver

A TensorFlow object responsible for saving model checkpoints.


scaling

A commonly used practice in feature engineering to tame a feature's range of values to match the range of other features in the data set. For example, suppose that you want all floating-point features in the data set to have a range of 0 to 1. Given a particular feature's range of 0 to 500, you could scale that feature by dividing each value by 500.

See also normalization.


scikit-learn

A popular open-source ML platform. See www.scikit-learn.org.


sequence model

A model whose inputs have a sequential dependence. For example, predicting the next video watched from a sequence of previously watched videos.


session

Maintains state (for example, variables) within a TensorFlow program.


sigmoid function

A function that maps logistic or multinomial regression output (log odds) to probabilities, returning a value between 0 and 1. The sigmoid function has the following formula:

y=11+e−σ
where σ in logistic regression problems is simply:

σ=b+w1x1+w2x2+…wnxn
In other words, the sigmoid function converts σ into a probability between 0 and 1.

In some neural networks, the sigmoid function acts as the activation function.


softmax

A function that provides probabilities for each possible class in a multi-class classification model. The probabilities add up to exactly 1.0. For example, softmax might determine that the probability of a particular image being a dog at 0.9, a cat at 0.08, and a horse at 0.02. (Also called full softmax.)

Contrast with candidate sampling.


sparse feature

Feature vector whose values are predominately zero or empty. For example, a vector containing a single 1 value and a million 0 values is sparse. As another example, words in a search query could also be a sparse feature—there are many possible words in a given language, but only a few of them occur in a given query.

Contrast with dense feature.


squared loss

The loss function used in linear regression. (Also known as L2 Loss.) This function calculates the squares of the difference between a model's predicted value for a labeled example and the actual value of the label. Due to squaring, this loss function amplifies the influence of bad predictions. That is, squared loss reacts more strongly to outliers than L1 loss.


static model

A model that is trained offline.


stationarity

A property of data in a data set, in which the data distribution stays constant across one or more dimensions. Most commonly, that dimension is time, meaning that data exhibiting stationarity doesn't change over time. For example, data that exhibits stationarity doesn't change from September to December.


step

A forward and backward evaluation of one batch.


step size

Synonym for learning rate.


stochastic gradient descent (SGD)

A gradient descent algorithm in which the batch size is one. In other words, SGD relies on a single example chosen uniformly at random from a data set to calculate an estimate of the gradient at each step.


structural risk minimization (SRM)

An algorithm that balances two goals:

The desire to build the most predictive model (for example, lowest loss).
The desire to keep the model as simple as possible (for example, strong regularization).
For example, a model function that minimizes loss+regularization on the training set is a structural risk minimization algorithm.

For more information, see http://www.svms.org/srm/.

Contrast with empirical risk minimization.


summary

In TensorFlow, a value or set of values calculated at a particular step, usually used for tracking model metrics during training.


supervised machine learning

Training a model from input data and its corresponding labels. Supervised machine learning is analogous to a student learning a subject by studying a set of questions and their corresponding answers. After mastering the mapping between questions and answers, the student can then provide answers to new (never-before-seen) questions on the same topic. Compare with unsupervised machine learning.


synthetic feature

A feature that is not present among the input features, but is derived from one or more of them. Kinds of synthetic features include the following:

Multiplying one feature by itself or by other feature(s). (These are termed feature crosses.)
Dividing one feature by a second feature.
Bucketing a continuous feature into range bins.
Features created by normalizing or scaling alone are not considered synthetic features.

T


target

Synonym for label.


Tensor

The primary data structure in TensorFlow programs. Tensors are N-dimensional (where N could be very large) data structures, most commonly scalars, vectors, or matrices. The elements of a Tensor can hold integer, floating-point, or string values.


Tensor Processing Unit (TPU)

An ASIC (application-specific integrated circuit) that optimizes the performance of TensorFlow programs.


Tensor rank

See rank.


Tensor shape

The number of elements a Tensor contains in various dimensions. For example, a [5, 10] Tensor has a shape of 5 in one dimension and 10 in another.


Tensor size

The total number of scalars a Tensor contains. For example, a [5, 10] Tensor has a size of 50.


TensorBoard

The dashboard that displays the summaries saved during the execution of one or more TensorFlow programs.


TensorFlow

A large-scale, distributed, machine learning platform. The term also refers to the base API layer in the TensorFlow stack, which supports general computation on dataflow graphs.

Although TensorFlow is primarily used for machine learning, you may also use TensorFlow for non-ML tasks that require numerical computation using dataflow graphs.


TensorFlow Playground

A program that visualizes how different hyperparameters influence model (primarily neural network) training. Go to http://playground.tensorflow.org to experiment with TensorFlow Playground.


TensorFlow Serving

A platform to deploy trained models in production.


test set

The subset of the data set that you use to test your model after the model has gone through initial vetting by the validation set.

Contrast with training set and validation set.


tf.Example

A standard protocol buffer for describing input data for machine learning model training or inference.


training

The process of determining the ideal parameters comprising a model.


training set

The subset of the data set used to train a model.

Contrast with validation set and test set.


true negative (TN)

An example in which the model correctly predicted the negative class. For example, the model inferred that a particular email message was not spam, and that email message really was not spam.


true positive (TP)

An example in which the model correctly predicted the positive class. For example, the model inferred that a particular email message was spam, and that email message really was spam.


true positive rate (TP rate)

Synonym for recall. That is:

TruePositiveRate=TruePositivesTruePositives+FalseNegatives
True positive rate is the y-axis in an ROC curve.

U


unlabeled example

An example that contains features but no label. Unlabeled examples are the input to inference. In semi-supervised and unsupervised learning, unlabeled examples are used during training.


unsupervised machine learning

Training a model to find patterns in a data set, typically an unlabeled data set.

The most common use of unsupervised machine learning is to cluster data into groups of similar examples. For example, an unsupervised machine learning algorithm can cluster songs together based on various properties of the music. The resulting clusters can become an input to other machine learning algorithms (for example, to a music recommendation service). Clustering can be helpful in domains where true labels are hard to obtain. For example, in domains such as anti-abuse and fraud, clusters can help humans better understand the data.

Another example of unsupervised machine learning is principal component analysis (PCA). For example, applying PCA on a data set containing the contents of millions of shopping carts might reveal that shopping carts containing lemons frequently also contain antacids.

Compare with supervised machine learning.

V


validation set

A subset of the data set—disjunct from the training set—that you use to adjust hyperparameters.

Contrast with training set and test set.

W


weight

A coefficient for a feature in a linear model, or an edge in a deep network. The goal of training a linear model is to determine the ideal weight for each feature. If a weight is 0, then its corresponding feature does not contribute to the model.


wide model

A linear model that typically has many sparse input features. We refer to it as "wide" since such a model is a special type of neural network with a large number of inputs that connect directly to the output node. Wide models are often easier to debug and inspect than deep models. Although wide models cannot express nonlinearities through hidden layers, they can use transformations such as feature crossing and bucketization to model nonlinearities in different ways.

Contrast with deep model.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 9월 19, 2017.
Connect

Blog
Facebook
Google+
Medium
Twitter
YouTube
Programs

Women Techmakers
Agency Program
GDG
Google Developers Experts
Startup Launchpad
Developer Consoles

Google API Console
Google Cloud Platform Console
Google Play Console
Firebase Console
Cast SDK Developer Console
Chrome Web Store Dashboard

Android
Chrome
Firebase
Google Cloud Platform
모든 제품
한국어
Terms Privacy
Sign up for the Google Developers newsletter
구독하기
Posted by uniqueone
,
https://m.facebook.com/story.php?story_fbid=377364479366220&id=303538826748786

30개의 필수 데이터과학, 머신러닝, 딥러닝 치트시트

데이터과학을 위한 Python
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/PythonForDataScience.pdf

Pandas 기초
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/PandasPythonForDataScience+(1).pdf

Pandas
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Python_Pandas_Cheat_Sheet_2.pdf

Numpy
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Numpy_Python_Cheat_Sheet.pdf

Scipy
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Python_SciPy_Cheat_Sheet_Linear_Algebra.pdf

Scikit-learn
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Scikit_Learn_Cheat_Sheet_Python.pdf

Matplotlib
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Python_Matplotlib_Cheat_Sheet.pdf

Bokeh
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Python_Bokeh_Cheat_Sheet.pdf

Base R
https://www.rstudio.com/resources/cheatsheets/

Advanced R
https://www.rstudio.com/resources/cheatsheets/

Caret
https://www.rstudio.com/resources/cheatsheets/

Data Import
https://www.rstudio.com/resources/cheatsheets/

Data Transformation with dplyr
https://www.rstudio.com/resources/cheatsheets/

R Markdown
https://www.rstudio.com/resources/cheatsheets/

R Studio IDE
https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/rstudio-IDE-cheatsheet.pdf

Data Visualization
https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/ggplot2-cheatsheet-2.1.pdf

Neural Network Architectures
http://www.asimovinstitute.org/neural-network-zoo/

Neural Network Cells
http://www.asimovinstitute.org/neural-network-zoo-prequel-cells-layers/

Neural Network Graphs
http://www.asimovinstitute.org/neural-network-zoo-prequel-cells-layers/

TensorFlow
https://www.altoros.com/tensorflow-cheat-sheet.html

Keras
https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Keras_Cheat_Sheet_Python.pdf

Probability
https://static1.squarespace.com/static/54bf3241e4b0f0d81bf7ff36/t/55e9494fe4b011aed10e48e5/1441352015658/probability_cheatsheet.pdf

Statistics
http://web.mit.edu/~csvoss/Public/usabo/stats_handout.pdf

Linear Algebra
https://minireference.com/static/tutorials/linear_algebra_in_4_pages.pdf

Big O Complexity
http://bigocheatsheet.com/

Common Data Structure Operations
http://bigocheatsheet.com/

Common Sorting Algorithms
http://bigocheatsheet.com/

Data Structures
https://www.clear.rice.edu/comp160/data_cheat.html

SQL
http://www.sql-tutorial.net/sql-cheat-sheet.pdf
Posted by uniqueone
,
https://m.facebook.com/story.php?story_fbid=340227976413204&id=303538826748786

데이터과학 및 딥러닝을 위한 데이터세트
데이터 과학 기술을 배우는 대부분의 사람들은 실제 데이터를 사용하여 작업합니다. 그러나 잘못된 데이터를 사용하면 시간이 많이 걸리고 초조한 모험이 될 수 있습니다.

필자는 데이터과학 기술을 배우면서 올바른 유형의 데이터를 선택하기 위해 지켜야 할 규칙을 작성했습니다.

1. 회귀 분석
-. 자동차 mpg 데이터세트
https://archive.ics.uci.edu/ml/datasets/auto+mpg

-. UCI 머신러닝 저장소
http://archive.ics.uci.edu/ml/index.php

2. 분류
-. Kaggle
http://www.kaggle.com/

3. 시계열 분석
-. 시계열 데이터 라이브러리
https://datamarket.com/data/list/?q=provider:tsdl

-. Quandl
https://www.quandl.com/

4. 시각화
-. 데이터의 흐름
http://flowingdata.com/

-. subreddit r/dataisbeautiful
https://www.reddit.com/r/dataisbeautiful/

5. 자연어
-. Reddit 주석
https://www.reddit.com/r/datasets/comments/3bxlg7/i_have_every_publicly_available_reddit_comment/

-. 트위터 정서 분석
https://github.com/jonbruner/twitter-analysis

-. 영어 음성 데이터베이스
http://www.linguistics.ucsb.edu/research/santa-barbara-corpus

-. SNAP 데이터베이스
https://snap.stanford.edu/data/index.html

6. 대형 데이터세트
-. ImageNet
http://www.image-net.org/

-. 얼굴 인식
http://www.face-rec.org/databases/

-. 고양이, 강아지
https://www.kaggle.com/c/dogs-vs-cats-redux-kernels-edition

-. Tiny Image
http://horatio.cs.nyu.edu/mit/tiny/data/index.html

-. Indian Movie Face
http://cvit.iiit.ac.in/projects/IMFDB/

**카테고리 및 형식별
https://github.com/rasbt/pattern_classification/blob/master/resources/dataset_collections.md#dataset-repositories

**주제
https://dreamtolearn.com/ryan/1001_datasets

**위치
https://opendatainception.io/

**다양한 주제에 재한 데이터세트
https://www.reddit.com/r/datasets/

출처 :
https://medium.com/startup-data-science/data-sets-to-play-with-while-learning-data-science-and-deep-learning-43eb92f28448
Posted by uniqueone
,

http://cristivlad.com/beginning-machine-learning-a-few-resources-subjective/

 

 

 

 

I’ve been meaning to write this post for a while now, because many people following the scikit-learn video tutorials and the ML group are asking for direction, as in resources for those who are just starting out.

So, I decided to put up a short and subjective list with some of the resources I’d recommend for this purpose. I’ve used some of these resources when I started out with ML. Practically, there are unlimited free resources online. You just have to search, pick something, and start putting in the work, which is probably one of the most important aspects of learning and developing any skill.

Since most of these resources involve knowledge of programming (especially Python), I am assuming you have decent skills. If you don’t, I’d suggest learning to program first. I’ll write a post about that in the future, but until then, you could start, hands-on, with the free Sololearn platform.

The following resources include, but are not limited to books, courses, lectures, posts, and Jupyter notebooks, just to name a few.

In my opinion, skill development with more than one type of resource can be fruitful. Spreading yourself too thin by trying to learn from too many places at once could be detrimental though. To illustrate, here’s what I think of a potentially good approach to study ML in any given day (and I’d try to do skill development 6-7 days a week, for several hours each day):

– 1-2 hours reading from a programming book and coding along
– 1 hour watching a lecture, or a talk, or reading a research paper
– 30 minutes to 1 hour working through a course
– optional: reading 1-2 posts.

This would be a very intensive approach and it may lead to good results. These results are dependent of good sleep – in terms of quality (at night, at the right hours) and quantity (7-8 hours consistently).

Now, the short-list…

Starter Resources

  1. A few Courses

1.1. Machine Learning with Python – From CognitiveClass.ai

I put this on the top of the list because it not only goes through the basics of ML such as supervised vs. unsupervised learning, types of algorithms and popular models, but it also provides LABs, which are Jupyter notebooks where you practice what you learned during the video lectures. If you pass all weekly quizes and the final exam, you’ll obtain a free course certificate. I took this course a while ago.

1.2. Intro to Machine Learning – From Udacity

Taught by Sebastian Thrun and Katie Malone, this is a ~10-week, self-paced, very interactive course. The videos are very short, but engaging; there are more than 400 videos that you have to go through. I specifically like this one because it is very hands-on and engaging, so it requires your active input. I enjoyed going through the Enron dataset.

1.3. Machine Learning – From Udacity

Taught by Michael Littman, Charles Isbell, and Pushkar Kolhe, this is a ~4-month, self-paced course, offered as CS7641 at Georgia Tech and it’s part of their Online Masters Degree.

1.4. Principles of Machine Learning – From EDX, part of a Microsoft Program

Taught by Dr. Steve Elston and Cynthia Rudin. It’s a 6-week, intermediate level course.

1.5. Machine Learning Crash Course – from Berkeley

A 3-part series going through some of the most important concepts of ML. The accompanying graphics are ‘stellar’ and aid the learning process tremendously.

Of course, there are many more ML courses on these online learning platforms and on other platforms as well (do a search with your preferred search engine).

If you’re ML savvy, you may be wondering why I am not mentioning Ng’s course. It’s not that I don’t recommend it; on the contrary, I do. But I’d suggest going through it only after you have a solid knowledge of the basics.

Additionally, here are the materials from Stanford and MIT‘s two courses on machine learning. Some video lectures can be found in their Youtube playlists. Other big universities provide their courses on the open on Youtube or via other video sharing platforms. Find one or two and go through them diligently.

  1. Books

2.1. Python for Data Analysis – Wes Mckiney

– to lay the foundation of working with ML related tools and libraries

2.2. Python Machine Learning – Sebastian Raschka

– reference book.

2.3. Introduction to Machine Learning with Python – Andreas Muller and Sarah Guido

– I’ve been using this book as inspiration material in my ML Youtube video series.

Going through these books hands-on (coding along) is critical. Each of them have their github repository of Jupyter notebooks, which makes it even easier to get your hands on the code.

Strong ML skills imply solid knowledge of the mathematics, statistics and probability theory behind the algorithms, atop of the programming skills. Once you get the conceptualized knowledge of ML, you should be studying the complexities of it.

Here’s a list of free books and resources to help you along. It is relevant to ML and data mining, deep learning, natural language processing, neural networks, linear algebra (!!!), and probability and statistics (!!!).

  1. Videos and Playlists

3.1. Luis Serrano – A friendly Introduction to Machine Learning

– one of the most well explained video tutorials that I went through. No wonder Luis teaches with Udacity. His other videos on neural networks bring the same level of quality!

3.2. Roshan – Machine Learning – Video Series

– from setting up the environment to hands-on. Notebooks are also available.

3.3. Machine Learning with Scikit-Learn (Scipy 2016) – Part 1 and Part 2

– taught, hands-on, by Muller and Raschka. Notebooks are available in the description of the videos. Similar videos by these authors are available in the ‘recommended’ section (on the right of the video).

At this point I realized I’ve been using the word ‘hands-on’ way too much. But that’s okay. I guess you get the point.

3.4. Machine Learning with Python – Sentdex Playlist

– Sentdex needs no introduction. His current ML playlist consists of 72 videos.

3.5. Machine Learning with Scikit-Learn – Cristi Vlad Playlist

This is my own playlist. It currently has 27 videos and I’m posting new ones every few days. I’m working with scikit-learn on the cancer dataset and I explore different ML algorithms and models.

3.6. Machine Learning APIs by Example – Google Developers

– presented at the 2017 Google I/O Conference.

3.7. Practical Introduction to Machine Learning – Same Hames

– tutorial from 2016 PyCon Australia.

3.8. Machine Learning Recipes – with Josh Gordon

– from Google Developers.

To find similar channels you can search for anything related to ‘pycon’, ‘pydata’, ‘enthought python’, etc. I also remind you that many top universities and companies posts their courses, lectures, and talks on their video channels. Look them up.

  1. Others

4.1. Machine Learning 101 – from BigML

“In this page you will find a set of useful articles, videos and blog posts from independent experts around the world that will gently introduce you to the basic concepts and techniques of Machine Learning.”

4.2. Learning Machine Learning – EliteDataScience

4.3. Top-down learning path: Machine Learning for Software Engineers

– a collection of resources from a self-taught software engineer, Nam Vu, who purposed to study roughly 4 hours a night.

4.4. Machine Learning Mastery – by Dr. Jason Brownlee

Concluding Thoughts

To reiterate, there is an unlimited number of free and paid resources that you can learn from. To try to include too many is futile and could be counterproductive. Here I only presented a few personal picks and I suggested ways to search for others if these do not appeal to you.

Remember, to be successful in skill development, I’d recommend an eclectic approach by learning and practicing from a combination of different types of resources at the same time (just a few) for a couple of hours everyday.

Learning from courses, hands-on lectures, talks, and presentations, books (hands-on) and Jupyter notebooks is a very demanding and intensive approach that could lead to good results if you are consistent. Good sleep is crucial for skill development. Enjoy the ride!

Image: here.

Posted by uniqueone
,
https://www.facebook.com/groups/TensorFlowKR/permalink/454824168191980/

 SNU TF 스터디 모임

https://goo.gl/ihvrGV

위의 링크로 들어가시면 1기 때부터 쭉 모아온 발표자료들이 올라와있으니 자유롭게 다운받으실 수 있습니다. (앞으로도 계속 업데이트될 예정입니다.^^) 그리고 혹시나 스터디 관련한 문의가 있으시면 댓글 또는 저한테 말씀해주세요. :)

그럼 모두 좋은 하루 되시기 바랍니다. 감사합니다!

 

Posted by uniqueone
,

List of Free Must-Read Books for Machine Learning
http://blog.paralleldots.com/technology/machine-learning/list-of-free-must-read-books-for-machine-learning/?utm_source=forum&utm_medium=group_post&utm_campaign=Data+Tau+

 

In this article, we have listed some of the best free machine learning books that you should consider going through (no order in particular).

Mining of Massive Datasets

Jure Leskovec, Anand Rajaraman, Jeff Ullman

massive datasets
Based on the Stanford Computer Science course CS246 and CS35A, this book is aimed for Computer Science undergraduates, demanding no pre-requisites. This book has been published by Cambridge University Press.

An Introduction to Statistical Learning (with applications in R)

Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani

statistical learning

This book holds the prologue to statistical learning methods along with a number of R labs included.

Deep Learning

Ian Goodfellow and Yoshua Bengio and Aaron Courville

deep learning

This Deep Learning textbook is designed for those in the early stages of Machine Learning and Deep learning in particular. The online version of the book is available now for free.

Bayesian methods for hackers

Cam Davidson-Pilon

hackers method

This book introduces you to the Bayesian methods and probabilistic programming from a computation point of view. The book is basically a godsend for those having a loose grip on mathematics.

Understanding Machine Learning: From Theory to Algorithms

Shai Shalev-Shwartz and Shai Ben-David

understanding ml

For the mathematics- savvy people, this is one of the most recommended books for understanding the magic behind Machine Learning.

Deep Learning Tutorial

LISA lab, University of Montreal

Deep Learning tutorial using Theano is a must- read if you are willing to enter this field and is absolutely free.

Scikit-Learn Tutorial: Statistical-Learning for Scientific Data Processing

Andreas Mueller

scikit learn
Exploring statistical learning, this tutorial explains the use of machine learning techniques with aim of statistical inference. The tutorial can be accessed online for free.

Machine Learning (An Algorithmic Perspective)

Stephen Marsland

machine learning

This book has a lot to offer to the Engineering and Computer Science students studying Machine Learning and Artificial Intelligence. Published by CRC press and written by Stephen Marsland, this book is unfortunately not free. However, we highly recommend you to invest in this one. Also, all the python code are available online. These code are a great reference source for python learning.

Building Machine Learning Systems with Python

Willi Richert and Luis Pedro Coelho

ML python

This book is also not available for free but including it serves our list justice. It is an ultimate hands-on guide to get the most of Machine Learning with python.

These are some of the finest books that we recommend. Have something else in mind? Comment below and contribute to the list. 

Posted by uniqueone
,
https://www.mathworks.com/discovery/regularization.html

 

 

Prevent statistical overfitting with regularization techniques

Regularization techniques are used to prevent statistical overfitting in a predictive model. By introducing additional information into the model, regularization algorithms can deal with multicollinearity and redundant predictors by making the model more parsimonious and accurate. These algorithms typically work by applying a penalty for complexity such as by adding the coefficients of the model into the minimization or including a roughness penalty.

Techniques and algorithms important for regularization include ridge regression (also known as Tikhonov regularization), lasso and elastic net algorithms, as well as trace plots and cross-validated mean square error. You can also apply Akaike Information Criteria (AIC) as a goodness-of-fit metric.

For more information on regularization techniques, please see Statistics and Machine Learning Toolbox.

See also: Statistics and Machine Learning Toolbox, Machine Learning

 

Posted by uniqueone
,