context.xml and server.xml under conf file
<Context reloadable="true"> server.xml:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> where autoDeploy=”true " is Hot deployment
When rereading Paper's "Batch Normalization" recently, I found that it repeatedly mentioned a concept "Co-Variant Shift" in the article, and batch-Normalization was proposed to solve the Co-Variant Shift phenomenon in neural networks (especially in deeper networks).I am very interested in this concept, so I took the time to look up some of them and summarize what I learned here today.
First of all, let me explain what is called the covariate shift phenomenon.
mnist library is the most commonly used library, but there are several different versions. 1 https://s3.amazonaws.com/img-datasets/mnist.npz If you use example that comes with keras, you will download it from this address.But for some reason, the download could not come down. http://blog.csdn.net/jsliuqun/article/details/64444302's blog also recorded that it could not be downloaded, using other methods. path = get_file(path, origin='https://s3.amazonaws.com/img-datasets/mnist.npz') f = np.load(path) x_train, y_train = f['x_train'], f['y_train'] x_test, y_test = f['x_test'], f['y_test']
0. Parameters of Reshape reshape parameter strictly speaking, should be a tuple type (tuple of ints), does not seem to be a tuple into (ints). >>> x = np.random.rand(2, 3) >>> x.reshape((3, 2)) # 以tuple of ints array([[ 0.19399632, 0.33569667], [ 0.36343308, 0.7068406 ], [ 0.89809989, 0.7316493 ]]) >>> x.reshape(3, 2) array([[ 0.19399632, 0.33569667], [ 0.36343308, 0.7068406 ], [ 0.89809989, 0.7316493 ]]) 1. .reshape Realize
In many situations where the Internet is isolated, python software packages installed offline are required.
Generally, it will be downloaded first on computers with Internet and then copied to computers without Internet for installation.
Downloads can be directly downloaded from pypi's website.If there are multiple dependencies, it may be more troublesome.
Now a relatively simple command line download method is recommended.
pip is a python software management tool.How to install pip will not be described here.
sklearn preprocessing code code comes from sklearn module in inside, Anaconda (installer) software.
""" The :mod:`sklearn.preprocessing` module includes scaling, centering, normalization, binarization and imputation methods. """ from .data import Binarizer from .data import KernelCenterer from .data import MinMaxScaler from .data import Normalizer from .data import StandardScaler from .data import add_dummy_feature from .data import binarize from .data import normalize from .data import scale from .data import OneHotEncoder from .
If odd and even numbers in an integer sequence are to be sorted separately, as follows: a = [2, 3, 5, 4, 22, 45, 99, 16]#结果：[3, 5, 45, 99, 2, 4, 16, 22] b = sorted(a, key=lambda x: (x+100000) if x%2==0 else x) print(b) The key here is the sorting condition. We can assign different mappings to lambda functions. For example,