Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- TensorFlow
- download
- Deep Learning
- keras
- FIle
- urllib
- object detection
- dlib
- raspberry pi
- 딥러닝
- windows
- gpu memory
- python3
- linux
- ppc64le
- pyTorch
- python
- Jupyter notebook
- CUDA
- Anaconda
- shakeratos
- Windows 10
- install
- ubuntu
- colaboratory
- face_recognition
- dataset
- YouTube 8M
- error
- colab
Archives
- Today
- Total
Shakerato
Role of validation for neural network (deep learning) - validation 역할 본문
Research
Role of validation for neural network (deep learning) - validation 역할
Shakeratto 2018. 4. 1. 21:39Why do we need validation (validation이 필요한 이유)?
- In order to estimate how well your model has been trained (that is dependent upon the size of your data, the value you would like to predict, input etc) and to estimate model properties (mean error for numeric predictors, classification errors for classifiers, recall and precision for IR-models etc.)
- 모델이 학습이 잘 되었는지 측정하기 위해 - A set of examples used to tune the parameters of a classifier In the MLP case, we would use the validation set to find the “optimal” number of hidden units or determine a stopping point for the back-propagation algorithm
- 모델의 파리미터를 조정하기 위해
- 히든 유닛의 최적 개수를 찾기 위해
- 역전파 알고리즘의 종료 시점을 결정 하기 위해 - This data set is used to compare the performances of the prediction algorithms that were created based on the training set. We choose the algorithm that has the best performance
- 예측 알고리즘(모델)의 성능을 비교하기 위해 - You now have a collection of algorithms. You must pick one algorithm. That’s why you have a test set. Most people pick the algorithm that performs best on the validation set (and that's ok). But, if you do not measure your top-performing algorithm’s error rate on the test set, and just go with its error rate on the validation set, then you have blindly mistaken the “best possible scenario” for the “most likely scenario.” That's a recipe for disaster
- 최고 성능의 알고리즘(모델)을 확인하기 위해 (특정 epoch에서 최고 성능을 보여준다면, 그 epoch를 저장) - Example of Validation (Record best recorded epoch)
- 예제 코드
# validate
if validate and i % iters_per_epoch == 0:
x, y = data_dict['validate'].next()
feed_dict = {self.x: x, self.y: y,
self.dropout: 1.0} # keep prob 1
accuracy = sesh.run(self.accuracy, feed_dict)
cross_vals.append(accuracy)
if accuracy >= best_acc:
best_acc = accuracy
if save:
epoch = (i // iters_per_epoch)
print 'Record validation accuracy (epoch {}): '.format(
epoch) + '{}. Freezing!'.format(best_acc)
self._freeze(epoch = (i // iters_per_epoch))
References
- https://stats.stackexchange.com/questions/19048/what-is-the-difference-between-test-set-and-validation-set?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
- https://machinelearningmastery.com/difference-test-validation-datasets/
- https://github.com/meereeum/vANNilla-tf
'Research' 카테고리의 다른 글
Visual Studio Code IntelliSence 줄바꿈시 코드 자동 채워짐 문제 (0) | 2018.04.17 |
---|---|
How to implement next_batch for mini batch gradient descent in deep learning (0) | 2018.04.02 |
Google colab에서 한국어 NLP 처리 환경 구축 (1) | 2018.03.31 |
Tensorflow Object Detection Tutorial (0) | 2018.03.29 |
How to make video clips of the long video using ffmpeg (0) | 2018.03.27 |
Comments