two ways to configure deep learning environments:
1. Install directly on the development machine (note that other programs that rely on Python to run may not work):
sudo pip installtensorflow-1.2.0rc2-cp27-cp27mu-manylinux1_x86_64.whl-ihttp://mirrors.aliyun.com/pypi/simple/-- Trusted-host mirrors.aliyun.com
The cp27 of the WHL file means that using python2.7 cp27m is the ABI attribute
2. Virtualization installation, the method has good isolation, portability and easy to share, do not worry about the Python version of the conflict with his application
1. Networked Computer installation Centos7
2. Install Docker for CentOS distribution CE version in CENTOS7 (Run command to check if installation is successful: Sudodocker run Hello-world)
3. Installing Python2.7 in Docker
4. Installing TensorFlow (Source: gcr.io/tensorflow/tensorflow) in Docker
5. Docker Test TensorFlow Installation Correctness (model of the runner-up of the IRIS)
6. Test/Development/production environment installation CENTOS7
[7,8 Optional: If you want to migrate the container to an environment that is not networked:]
7. Export virtual container to Tensorflow2.tar:sudo Docker ps-a get Docker Containner Id, sudo docker export 0e8dddfb5e05 > Tensorflow2.tar
8. Import virtual container to test/dev/production environment: sudo docker import Tensorflow2.tar tf:v1 # # #sudo Docker Import[options] file| url|-[Repository[:tag]]
9. Enter the TensorFlow container script:
Dk_name= ' Sudodocker ps-a | grep ' Up ' | awk ' {print $NF} '
Echo$dk_name
if["$dk _name" = = ""]
Then
echo "No Docker is running"
Exit
Else
echo "Get Docker $dk _name"
Pid= ' Sudodocker Inspect--format ' {{. State.pid}} "$dk _name '
Echo$pid
Sudonsenter--target $pid--mount--uts--ipc--net--pid
Fi
If you return "Nodocker is running:
Sudodocker ps-a get Containerid, then sudo docker start $containerId, and then execute the script into the container frequently asked Questions training effect is good, verification effect is bad
Positioning: Over fitting
Solution:
1. Increase the sample size of the category with poor effect;
2. Add dropout
3. Check the data pre-processing and validation phase of the training phase of the data preprocessing logic is consistent. training is not good .
Positioning:
1. Data quality is not high
2. Improper selection of parameters
3. Improper network structure
Solution:
1. Check whether the amount of data in each category is adequate, whether the data distribution is too biased, and whether the data dimension is rich.
2. Self-tuning parameters, such as optimization algorithm, activation algorithm, etc.
3. If there are Mini_batch and oversampling, the samples should be scattered.
4. Start with a simple structure and gradually increase complexity
5. If the full-connection structure is not effective, try to generate a model with spatial structure of the CNN, and the time structure of the rnn/lstm and other automatic features.