ravidziv/IDNNs
소개
정보를 통해 DNN 탐색
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalIDNNs
Description
IDNNs is a python library that implements training and calculating of information in deep neural networks
[Shwartz-Ziv & Tishby, 2017] in TensorFlow. The library allows you to investigate how networks look on the
information plane and how it changes during the learning.
Prerequisites
- tensorflow r1.0 or higher version
- numpy 1.11.0
- matplotlib 2.0.2
- multiprocessing
- joblib
Usage
All the code is under the idnns/ directory.
For training a network and calculate the MI and the gradients of it run the an example in main.py.
Off course you can also run only specific methods for running only the training procedure/calculating the MI.
This file has command-line arguments as follow -
start_samples- The number of the first sample for calculate the informationbatch_size- The size of the batchlearning_rate- The learning rate of the networknum_repeat- The number of times to run the networknum_epochs- maximum number of epochs for trainingnet_arch- The architecture of the networksper_data- The percent of the training dataname- The name for saving the resultsdata_name- The dataset namenum_samples- The max number of indexes for calculate the informationsave_ws- True if we want to save the outputs of the networkcalc_information- 1 if we want to calculate the MI of the networksave_grads- True if we want to save the gradients of the networkrun_in_parallel- True if we want to run all the networks in parallel modenum_of_bins- The number of bins that we divide the neurons' outputactivation_function- The activation function of the model 0 for thnh 1 for RelU'interval_accuracy_display- The interval for display accuracyinterval_information_display- The interval for display the information calculationcov_net- True if we want covnetrand_labels- True if we want to set random labelsdata_dir- The directory for finding the data The results are save under the folder jobs. Each run create a directory with a name that contains the run properties. In this directory there are the data.pickle file with the data of run and python file that is a copy of the file that create this run. The data is under the data directory.
For plotting the results we have the file plot_figures.py. This file contains methods for plotting diffrent aspects of the data (the information plane, the gradients,the norms, etc).
References
- Ravid. Shwartz-Ziv, Naftali Tishby, Opening the Black Box of Deep Neural Networks via Information, 2017, Arxiv.
관련 프로젝트 살펴보기
불러오는 중…